Fix for Drain vs Liquid Ooze

When a draining move KOs a Pokemon with Liquid Ooze, the ability would not activate. This fixes that.
This commit is contained in:
GLugia
2024-12-25 12:11:05 -05:00
parent 2929da60ed
commit 256a045607

View File

@@ -30,7 +30,7 @@ class PokeBattle_Battler
end
def pbRecoverHPFromDrain(amt,target,msg=nil)
if target.hasActiveAbility?(:LIQUIDOOZE)
if target.hasActiveAbility?(:LIQUIDOOZE, true)
@battle.pbShowAbilitySplash(target)
pbReduceHP(amt)
@battle.pbDisplay(_INTL("{1} sucked up the liquid ooze!",pbThis))