Added Eject Pack's effect

This commit is contained in:
Maruno17
2021-09-19 23:04:29 +01:00
parent 1fb3ff5408
commit d4abc6ef2b
18 changed files with 139 additions and 66 deletions

View File

@@ -51,11 +51,13 @@ class PokeBattle_Battler
end
def pbTakeEffectDamage(amt, show_anim = true)
@droppedBelowHalfHP = false
hp_lost = pbReduceHP(amt, show_anim)
yield hp_lost if block_given? # Show message
pbItemHPHealCheck
pbAbilitiesOnDamageTaken
pbFaint if fainted?
@droppedBelowHalfHP = false
end
def pbFaint(showMessage=true)