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
77239b7e
Commit
77239b7e
authored
Feb 22, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix processor
parent
ec3b62b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ocgcore/processor.cpp
ocgcore/processor.cpp
+7
-0
No files found.
ocgcore/processor.cpp
View file @
77239b7e
...
...
@@ -3465,6 +3465,7 @@ int32 field::process_battle_command(uint16 step) {
case
26
:
{
uint32
aa
=
core
.
attacker
->
get_attack
(),
ad
=
core
.
attacker
->
get_defence
();
uint32
da
=
0
,
dd
=
0
;
uint8
pa
=
core
.
attacker
->
current
.
controler
,
pd
;
core
.
attacker
->
q_cache
.
attack
=
aa
;
core
.
attacker
->
q_cache
.
defence
=
ad
;
core
.
attacker
->
set_status
(
STATUS_BATTLE_DESTROYED
,
FALSE
);
...
...
@@ -3474,6 +3475,11 @@ int32 field::process_battle_command(uint16 step) {
core
.
attack_target
->
q_cache
.
attack
=
da
;
core
.
attack_target
->
q_cache
.
defence
=
dd
;
core
.
attack_target
->
set_status
(
STATUS_BATTLE_DESTROYED
,
FALSE
);
pd
=
core
.
attack_target
->
current
.
controler
;
if
(
pa
!=
pd
){
core
.
attacker
->
set_status
(
STATUS_OPPO_BATTLE
,
TRUE
);
core
.
attack_target
->
set_status
(
STATUS_OPPO_BATTLE
,
TRUE
);
}
}
effect
*
damchange
=
0
;
card
*
reason_card
=
0
;
...
...
@@ -4136,6 +4142,7 @@ int32 field::process_turn(uint16 step, uint8 turn_player) {
}
case
3
:
{
//Standby Phase
shuffle
(
turn_player
,
LOCATION_HAND
);
infos
.
phase
=
PHASE_STANDBY
;
core
.
phase_action
=
FALSE
;
raise_event
((
card
*
)
0
,
EVENT_PHASE_PRESTART
+
PHASE_STANDBY
,
0
,
0
,
0
,
turn_player
,
0
);
...
...
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