mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 07:35:00 +00:00
Added Eject Pack's effect
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user