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
f54f3a40
Commit
f54f3a40
authored
Jun 26, 2020
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EFFECT_REFLECT_DAMAGE
Now it will check EFFECT_REFLECT_DAMAGE before EFFECT_CHANGE_DAMAGE.
parent
da5bd916
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
operations.cpp
operations.cpp
+13
-12
No files found.
operations.cpp
View file @
f54f3a40
...
@@ -467,32 +467,33 @@ int32 field::damage(uint16 step, effect* reason_effect, uint32 reason, uint8 rea
...
@@ -467,32 +467,33 @@ int32 field::damage(uint16 step, effect* reason_effect, uint32 reason, uint8 rea
}
}
}
}
}
}
uint32 val = amount;
eset
.
clear
();
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) {
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
amount
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
amount
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason
,
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_player
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason_card
,
PARAM_TYPE_CARD
);
pduel
->
lua
->
add_param
(
reason_card
,
PARAM_TYPE_CARD
);
val = eset[i]->get_value(5);
if
(
eset
[
i
]
->
check_value_condition
(
5
))
{
returns.ivalue[0] = val;
playerid
=
1
-
playerid
;
if(val == 0)
core
.
units
.
begin
()
->
arg2
|=
1
<<
29
;
return TRUE;
break
;
}
}
}
uint32
val
=
amount
;
eset
.
clear
();
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
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
val
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
val
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason
,
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_player
,
PARAM_TYPE_INT
);
pduel
->
lua
->
add_param
(
reason_card
,
PARAM_TYPE_CARD
);
pduel
->
lua
->
add_param
(
reason_card
,
PARAM_TYPE_CARD
);
if(eset[i]->check_value_condition(5)) {
val
=
eset
[
i
]
->
get_value
(
5
);
core.units.begin()->arg2 |= 1 << 29
;
returns
.
ivalue
[
0
]
=
val
;
break;
if
(
val
==
0
)
}
return
TRUE
;
}
}
core
.
units
.
begin
()
->
arg2
=
(
core
.
units
.
begin
()
->
arg2
&
0xff000000
)
|
(
val
&
0xffffff
);
core
.
units
.
begin
()
->
arg2
=
(
core
.
units
.
begin
()
->
arg2
&
0xff000000
)
|
(
val
&
0xffffff
);
if
(
is_step
)
{
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