Fixed Grudge and Lunar Dance not properly changing PP amounts

This commit is contained in:
Maruno17
2022-06-19 17:04:58 +01:00
parent b367b2442b
commit 2e3ba2e09e
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ class Battle::Battler
end
# Grudge
if target.effects[PBEffects::Grudge] && target.fainted?
move.pp = 0
user.pbSetPP(move, 0)
@battle.pbDisplay(_INTL("{1}'s {2} lost all of its PP due to the grudge!",
user.pbThis, move.name))
end