Commit fe782145 authored by DailyShana's avatar DailyShana

fix negate attack

close Fluorohydride/ygopro-scripts#1255
parent caba634b
...@@ -504,10 +504,11 @@ int32 field::process() { ...@@ -504,10 +504,11 @@ int32 field::process() {
if(it->step == 0) { if(it->step == 0) {
card* attacker = core.attacker; card* attacker = core.attacker;
if(!attacker if(!attacker
|| (attacker->fieldid_r != core.pre_field[0]) || core.effect_damage_step != 0
|| (attacker->current.location != LOCATION_MZONE) || (attacker->fieldid_r != core.pre_field[0])
|| !attacker->is_capable_attack() || (attacker->current.location != LOCATION_MZONE)
|| !attacker->is_affect_by_effect(core.reason_effect)) { || !attacker->is_capable_attack()
|| !attacker->is_affect_by_effect(core.reason_effect)) {
returns.ivalue[0] = 0; returns.ivalue[0] = 0;
core.units.pop_front(); core.units.pop_front();
} else { } else {
......
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