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

@@ -413,7 +413,7 @@ class Battle
pbDisplay(_INTL("{1} became cloaked in mystical moonlight!", battler.pbThis))
battler.pbRecoverHP(battler.totalhp)
battler.pbCureStatus(false)
battler.eachMove { |m| m.pp = m.total_pp }
battler.eachMove { |m| battler.pbSetPP(m, m.total_pp) }
position.effects[PBEffects::LunarDance] = false
elsif Settings::MECHANICS_GENERATION < 8
position.effects[PBEffects::LunarDance] = false

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