Commit 5fe80e78 authored by sidschingis's avatar sidschingis

fix

Duel.NegateAttack() now returns false when the Attacker has been changed to Defence Position.
(e.g. Swift Scarecrow vs. Mechquipped Angineer)
parent 092dc78e
......@@ -481,6 +481,7 @@ int32 field::process() {
if(!attacker
|| (attacker->fieldid_r != core.pre_field[0])
|| (attacker->current.position & POS_FACEDOWN)
|| (attacker->current.position & POS_DEFENCE && !(attacker->is_affected_by_effect(EFFECT_DEFENCE_ATTACK)))
|| attacker->is_affected_by_effect(EFFECT_ATTACK_DISABLED)
|| !attacker->is_affect_by_effect(core.reason_effect)) {
returns.ivalue[0] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment