From ddd44bbcaa98ac19ffb5075d8bf924dbde5a3af1 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Tue, 11 Jul 2023 22:45:37 +0200 Subject: [PATCH] Subdue to zero cancels attack --- sim.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sim.cpp b/sim.cpp index 0eb4a221..96725391 100644 --- a/sim.cpp +++ b/sim.cpp @@ -1620,6 +1620,10 @@ struct PerformAttack if ( __builtin_expect(fd->fixes[Fix::subdue_before_attack],true)) { perform_subdue(fd, att_status, def_status); + if(att_status->attack_power() == 0) // MK - 05/01/2023 6:58 AM: "Previously, when an attack was made, it checked if it had 0 attack and canceled. Now, after that check, it applies Subdue and checks again if it has 0 attack, and then cancels the rest of the attack.Previously, when an attack was made, it checked if it had 0 attack and canceled. Now, after that check, it applies Subdue and checks again if it has 0 attack, and then cancels the rest of the attack." + { + return 0; + } } modify_attack_damage(pre_modifier_dmg);