Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
a0263cec
Commit
a0263cec
authored
Jun 27, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5519b682
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
18 deletions
+17
-18
ocgcore/operations.cpp
ocgcore/operations.cpp
+3
-3
ocgcore/processor.cpp
ocgcore/processor.cpp
+14
-15
No files found.
ocgcore/operations.cpp
View file @
a0263cec
...
...
@@ -1039,16 +1039,16 @@ int32 field::self_destroy(uint16 step) {
}
case
1
:
{
if
(
!
(
core
.
global_flag
&
GLOBALFLAG_SELF_TOGRAVE
))
return
FALS
E
;
return
TRU
E
;
core
.
units
.
begin
()
->
arg1
=
returns
.
ivalue
[
0
];
if
(
!
core
.
self_tograve_set
.
empty
())
send_to
(
&
core
.
self_tograve_set
,
0
,
REASON_EFFECT
,
PLAYER_NONE
,
PLAYER_NONE
,
LOCATION_GRAVE
,
0
,
POS_FACEUP
);
else
return
TRUE
;
return
FALSE
;
}
case
2
:
{
returns
.
ivalue
[
0
]
+=
core
.
units
.
begin
()
->
arg1
;
if
(
returns
.
ivalue
[
0
])
adjust_instant
();
return
TRUE
;
}
}
...
...
ocgcore/processor.cpp
View file @
a0263cec
...
...
@@ -3360,11 +3360,7 @@ int32 field::process_battle_command(uint16 step) {
case
21
:
{
if
(
core
.
attacker
->
current
.
location
!=
LOCATION_MZONE
||
core
.
attacker
->
fieldid_r
!=
core
.
pre_field
[
0
]
||
(
core
.
attack_target
&&
(
core
.
attack_target
->
current
.
location
!=
LOCATION_MZONE
||
core
.
attack_target
->
fieldid_r
!=
core
.
pre_field
[
1
])))
{
core
.
units
.
begin
()
->
arg1
=
0
;
core
.
damage_calculated
=
TRUE
;
core
.
selfdes_disabled
=
FALSE
;
core
.
flip_delayed
=
FALSE
;
core
.
units
.
begin
()
->
step
=
38
;
core
.
units
.
begin
()
->
step
=
37
;
return
FALSE
;
}
if
(
!
core
.
attack_target
)
{
...
...
@@ -3421,11 +3417,7 @@ int32 field::process_battle_command(uint16 step) {
if
(
core
.
attacker
->
current
.
location
!=
LOCATION_MZONE
||
core
.
attacker
->
fieldid_r
!=
core
.
pre_field
[
0
]
||
((
core
.
attacker
->
current
.
position
&
POS_DEFENCE
)
&&
!
(
core
.
attacker
->
is_affected_by_effect
(
EFFECT_DEFENCE_ATTACK
)))
||
(
core
.
attack_target
&&
(
core
.
attack_target
->
current
.
location
!=
LOCATION_MZONE
||
core
.
attack_target
->
fieldid_r
!=
core
.
pre_field
[
1
])))
{
core
.
units
.
begin
()
->
arg1
=
0
;
core
.
damage_calculated
=
TRUE
;
core
.
selfdes_disabled
=
FALSE
;
core
.
flip_delayed
=
FALSE
;
core
.
units
.
begin
()
->
step
=
38
;
core
.
units
.
begin
()
->
step
=
37
;
return
FALSE
;
}
return
FALSE
;
...
...
@@ -3454,11 +3446,7 @@ int32 field::process_battle_command(uint16 step) {
case
25
:
{
if
(
core
.
attacker
->
current
.
location
!=
LOCATION_MZONE
||
core
.
attacker
->
fieldid_r
!=
core
.
pre_field
[
0
]
||
(
core
.
attack_target
&&
(
core
.
attack_target
->
current
.
location
!=
LOCATION_MZONE
||
core
.
attack_target
->
fieldid_r
!=
core
.
pre_field
[
1
])))
{
core
.
units
.
begin
()
->
arg1
=
0
;
core
.
damage_calculated
=
TRUE
;
core
.
selfdes_disabled
=
FALSE
;
core
.
flip_delayed
=
FALSE
;
core
.
units
.
begin
()
->
step
=
38
;
core
.
units
.
begin
()
->
step
=
37
;
return
FALSE
;
}
raise_single_event
(
core
.
attacker
,
0
,
EVENT_DAMAGE_CALCULATING
,
0
,
0
,
0
,
0
,
0
);
...
...
@@ -3753,6 +3741,17 @@ int32 field::process_battle_command(uint16 step) {
core
.
units
.
begin
()
->
step
=
38
;
return
FALSE
;
}
case
38
:
{
core
.
units
.
begin
()
->
arg1
=
0
;
core
.
damage_calculated
=
TRUE
;
core
.
selfdes_disabled
=
FALSE
;
core
.
flip_delayed
=
FALSE
;
core
.
new_fchain
.
splice
(
core
.
new_fchain
.
begin
(),
core
.
new_fchain_b
);
core
.
new_ochain
.
splice
(
core
.
new_ochain
.
begin
(),
core
.
new_ochain_b
);
if
(
core
.
new_fchain
.
size
()
||
core
.
new_ochain
.
size
())
add_process
(
PROCESSOR_POINT_EVENT
,
0
,
0
,
0
,
0
,
0
);
return
FALSE
;
}
case
39
:
{
//end of damage step
core
.
units
.
begin
()
->
step
=
-
1
;
...
...
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