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
55228320
Commit
55228320
authored
Jun 09, 2015
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
300286f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ocgcore/processor.cpp
ocgcore/processor.cpp
+2
-2
No files found.
ocgcore/processor.cpp
View file @
55228320
...
@@ -3605,7 +3605,7 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3605,7 +3605,7 @@ int32 field::process_battle_command(uint16 step) {
core.attacker->current.reason_player = core.attack_target->current.controler;
core.attacker->current.reason_player = core.attack_target->current.controler;
dest = LOCATION_GRAVE;
dest = LOCATION_GRAVE;
seq = 0;
seq = 0;
if
((
peffect
=
core
.
attack_target
->
is_affected_by_effect
(
EFFECT_BATTLE_DESTROY_REDIRECT
)))
{
if((peffect = core.attack_target->is_affected_by_effect(EFFECT_BATTLE_DESTROY_REDIRECT))
&& (core.attacker->data.type & TYPE_MONSTER)
) {
dest = peffect->get_value(core.attacker);
dest = peffect->get_value(core.attacker);
seq = dest >> 16;
seq = dest >> 16;
dest &= 0xffff;
dest &= 0xffff;
...
@@ -3625,7 +3625,7 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3625,7 +3625,7 @@ int32 field::process_battle_command(uint16 step) {
core.attack_target->current.reason_player = core.attacker->current.controler;
core.attack_target->current.reason_player = core.attacker->current.controler;
dest = LOCATION_GRAVE;
dest = LOCATION_GRAVE;
seq = 0;
seq = 0;
if
((
peffect
=
core
.
attacker
->
is_affected_by_effect
(
EFFECT_BATTLE_DESTROY_REDIRECT
)))
{
if((peffect = core.attacker->is_affected_by_effect(EFFECT_BATTLE_DESTROY_REDIRECT))
&& (core.attack_target->data.type & TYPE_MONSTER)
) {
dest = peffect->get_value(core.attack_target);
dest = peffect->get_value(core.attack_target);
seq = dest >> 16;
seq = dest >> 16;
dest &= 0xffff;
dest &= 0xffff;
...
...
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