Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro-core
Commits
dcfb08ce
Commit
dcfb08ce
authored
Jun 27, 2020
by
salix5
Committed by
GitHub
Jun 27, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #324 from Fluorohydride/patch-reflect
change the order of EFFECT_REFLECT_DAMAGE
parents
4bedd847
e4dbda7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
operations.cpp
operations.cpp
+12
-11
No files found.
operations.cpp
View file @
dcfb08ce
...
...
@@ -467,32 +467,33 @@ int32 field::damage(uint16 step, effect* reason_effect, uint32 reason, uint8 rea
}
}
}
uint32 val = amount;
eset
.
clear
();
filter_player_effect(playerid, EFFECT_
CHANGE
_DAMAGE, &eset);
filter_player_effect
(
playerid
,
EFFECT_
REFLECT
_DAMAGE
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
amount
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason_player
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason_card
,
PARAM_TYPE_CARD
);
val = eset[i]->get_value(5);
returns.ivalue[0] = val;
if(val == 0)
return TRUE;
if
(
eset
[
i
]
->
check_value_condition
(
5
))
{
playerid
=
1
-
playerid
;
core
.
units
.
begin
()
->
arg2
|=
1
<<
29
;
break
;
}
}
uint32
val
=
amount
;
eset
.
clear
();
filter_player_effect(playerid, EFFECT_
REFLECT
_DAMAGE, &eset);
filter_player_effect
(
playerid
,
EFFECT_
CHANGE
_DAMAGE
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
val
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason_player
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason_card
,
PARAM_TYPE_CARD
);
if(eset[i]->check_value_condition(5)) {
core.units.begin()->arg2 |= 1 << 29
;
break;
}
val
=
eset
[
i
]
->
get_value
(
5
);
returns
.
ivalue
[
0
]
=
val
;
if
(
val
==
0
)
return
TRUE
;
}
core
.
units
.
begin
()
->
arg2
=
(
core
.
units
.
begin
()
->
arg2
&
0xff000000
)
|
(
val
&
0xffffff
);
if
(
is_step
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment