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
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
MyCard
ygopro-core
Commits
e2363205
Commit
e2363205
authored
Sep 05, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust all after entering damage step
parent
3fd67208
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
processor.cpp
processor.cpp
+18
-15
No files found.
processor.cpp
View file @
e2363205
...
@@ -3118,7 +3118,21 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3118,7 +3118,21 @@ int32 field::process_battle_command(uint16 step) {
rollback
=
true
;
rollback
=
true
;
// go to damage step
// go to damage step
if
(
!
rollback
)
{
if
(
!
rollback
)
{
infos
.
phase
=
PHASE_DAMAGE
;
core
.
chain_attack
=
FALSE
;
pduel
->
write_buffer8
(
MSG_DAMAGE_STEP_START
);
core
.
units
.
begin
()
->
arg1
=
FALSE
;
core
.
damage_calculated
=
FALSE
;
core
.
selfdes_disabled
=
TRUE
;
core
.
flip_delayed
=
TRUE
;
core
.
pre_field
[
0
]
=
core
.
attacker
->
fieldid_r
;
if
(
core
.
attack_target
)
core
.
pre_field
[
1
]
=
core
.
attack_target
->
fieldid_r
;
else
core
.
pre_field
[
1
]
=
0
;
core
.
attacker
->
attacked_count
++
;
core
.
attacker
->
attacked_cards
.
addcard
(
core
.
attack_target
);
core
.
attacker
->
attacked_cards
.
addcard
(
core
.
attack_target
);
core
.
battled_count
[
infos
.
turn_player
]
++
;
core
.
units
.
begin
()
->
step
=
19
;
core
.
units
.
begin
()
->
step
=
19
;
adjust_all
();
adjust_all
();
return
FALSE
;
return
FALSE
;
...
@@ -3153,20 +3167,7 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3153,20 +3167,7 @@ int32 field::process_battle_command(uint16 step) {
return
FALSE
;
return
FALSE
;
}
}
case
20
:
{
case
20
:
{
infos.phase = PHASE_DAMAGE;
//infos.phase = PHASE_DAMAGE;
core.chain_attack = FALSE;
pduel->write_buffer8(MSG_DAMAGE_STEP_START);
core.units.begin()->arg1 = FALSE;
core.damage_calculated = FALSE;
core.selfdes_disabled = TRUE;
core.flip_delayed = TRUE;
core.pre_field[0] = core.attacker->fieldid_r;
if(core.attack_target)
core.pre_field[1] = core.attack_target->fieldid_r;
else
core.pre_field[1] = 0;
core.attacker->attacked_count++;
core.battled_count[infos.turn_player]++;
raise_single_event
(
core
.
attacker
,
0
,
EVENT_BATTLE_START
,
0
,
0
,
0
,
0
,
0
);
raise_single_event
(
core
.
attacker
,
0
,
EVENT_BATTLE_START
,
0
,
0
,
0
,
0
,
0
);
if
(
core
.
attack_target
)
if
(
core
.
attack_target
)
raise_single_event
(
core
.
attack_target
,
0
,
EVENT_BATTLE_START
,
0
,
0
,
0
,
0
,
1
);
raise_single_event
(
core
.
attack_target
,
0
,
EVENT_BATTLE_START
,
0
,
0
,
0
,
0
,
1
);
...
@@ -3232,10 +3233,12 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3232,10 +3233,12 @@ int32 field::process_battle_command(uint16 step) {
core
.
units
.
begin
()
->
step
=
32
;
core
.
units
.
begin
()
->
step
=
32
;
return
FALSE
;
return
FALSE
;
}
}
infos
.
phase
=
PHASE_DAMAGE_CAL
;
adjust_all
();
return
FALSE
;
return
FALSE
;
}
}
case
24
:
{
case
24
:
{
infos.phase = PHASE_DAMAGE_CAL;
//
infos.phase = PHASE_DAMAGE_CAL;
calculate_battle_damage
(
0
,
0
,
0
);
calculate_battle_damage
(
0
,
0
,
0
);
raise_single_event
(
core
.
attacker
,
0
,
EVENT_PRE_DAMAGE_CALCULATE
,
0
,
0
,
0
,
0
,
0
);
raise_single_event
(
core
.
attacker
,
0
,
EVENT_PRE_DAMAGE_CALCULATE
,
0
,
0
,
0
,
0
,
0
);
if
(
core
.
attack_target
)
if
(
core
.
attack_target
)
...
...
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