mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed Grudge and Lunar Dance not properly changing PP amounts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user