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
cea6155d
Commit
cea6155d
authored
Jun 11, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1394 from nekrozar/patch-4
fix EFFECT_BATTLE_DESTROY_REDIRECT
parents
071377b3
55228320
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 @
cea6155d
...
...
@@ -3605,7 +3605,7 @@ int32 field::process_battle_command(uint16 step) {
core.attacker->current.reason_player = core.attack_target->current.controler;
dest = LOCATION_GRAVE;
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);
seq = dest >> 16;
dest &= 0xffff;
...
...
@@ -3625,7 +3625,7 @@ int32 field::process_battle_command(uint16 step) {
core.attack_target->current.reason_player = core.attacker->current.controler;
dest = LOCATION_GRAVE;
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);
seq = dest >> 16;
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