Fixed Regenerator triggering at the end of battle instead of when switching out

This commit is contained in:
Maruno17
2020-09-23 08:15:53 +01:00
parent 7749dec2d4
commit 4a41e98b28

View File

@@ -2405,7 +2405,7 @@ BattleHandlers::AbilityOnSwitchOut.add(:NATURALCURE,
BattleHandlers::AbilityOnSwitchOut.add(:REGENERATOR,
proc { |ability,battler,endOfBattle|
next if !endOfBattle
next if endOfBattle
PBDebug.log("[Ability triggered] #{battler.pbThis}'s #{battler.abilityName}")
battler.pbRecoverHP(battler.totalhp/3,false,false)
}