The ability Guts has code under Move_UsageCalculations that decides the penalty to physical attack while having the burn status. Here's the original code for that:
What I'm trying to do is add another ability in the exclusion, so that Pokémon with the ability Quick Feet will also be exempt from the penalty to physical attack while having the burn status. I also adjusted the penalty amount from dividing by 2 to 1.5, but that shouldn't be part of this issue. I tried doing this in a couple ways:
Checks for the abilities Guts and Quick Feet individually. I copied the check condition from Guts and replaced the copy's tag with Quick Feet.
Made a bracketed group so that Quick Feet would be checked along with Guts.
Neither of these work. I also tried having the Guts ability in the same test battle scenario to make sure Guts still works correctly. Guts works fine in all scenarios. Quick Feet still has the attack penalty.
if user.status == :BURN && physicalMove? && damageReducedByBurn? && !user.hasActiveAbility?(:GUTS) multipliers[:final_damage_multiplier] /= 2 end What I'm trying to do is add another ability in the exclusion, so that Pokémon with the ability Quick Feet will also be exempt from the penalty to physical attack while having the burn status. I also adjusted the penalty amount from dividing by 2 to 1.5, but that shouldn't be part of this issue. I tried doing this in a couple ways:
if user.status == :BURN && physicalMove? && damageReducedByBurn? && !user.hasActiveAbility?(:GUTS) && !user.hasActiveAbility?(:QUICKFEET) multipliers[:final_damage_multiplier] /= 1.5 endChecks for the abilities Guts and Quick Feet individually. I copied the check condition from Guts and replaced the copy's tag with Quick Feet.
if user.status == :BURN && physicalMove? && damageReducedByBurn? && !user.hasActiveAbility?([:GUTS, :QUICKFEET]) multipliers[:final_damage_multiplier] /= 1.5 endMade a bracketed group so that Quick Feet would be checked along with Guts.
Neither of these work. I also tried having the Guts ability in the same test battle scenario to make sure Guts still works correctly. Guts works fine in all scenarios. Quick Feet still has the attack penalty.