• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!

Unable to make Quick Feet exempt from burn-status attack penalty

Desperado

Novice
Member
Joined
Jan 22, 2024
Posts
31
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:
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
end
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.

if user.status == :BURN && physicalMove? && damageReducedByBurn? &&
!user.hasActiveAbility?([:GUTS, :QUICKFEET])
multipliers[:final_damage_multiplier] /= 1.5
end
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.
 
Back
Top