mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-23 14:56:00 +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))
|
pbDisplay(_INTL("{1} became cloaked in mystical moonlight!", battler.pbThis))
|
||||||
battler.pbRecoverHP(battler.totalhp)
|
battler.pbRecoverHP(battler.totalhp)
|
||||||
battler.pbCureStatus(false)
|
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
|
position.effects[PBEffects::LunarDance] = false
|
||||||
elsif Settings::MECHANICS_GENERATION < 8
|
elsif Settings::MECHANICS_GENERATION < 8
|
||||||
position.effects[PBEffects::LunarDance] = false
|
position.effects[PBEffects::LunarDance] = false
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class Battle::Battler
|
|||||||
end
|
end
|
||||||
# Grudge
|
# Grudge
|
||||||
if target.effects[PBEffects::Grudge] && target.fainted?
|
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!",
|
@battle.pbDisplay(_INTL("{1}'s {2} lost all of its PP due to the grudge!",
|
||||||
user.pbThis, move.name))
|
user.pbThis, move.name))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user