mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-02-01 11:01:03 +00:00
Fixed not getting berry's effect at full HP or under Heal Block when using Bug Bite/Pluck
This commit is contained in:
@@ -245,10 +245,9 @@ class PokeBattle_Battler
|
||||
end
|
||||
end
|
||||
|
||||
# forcedItem is an item ID for Pluck/Fling, and 0 otherwise. fling is for
|
||||
# Fling only.
|
||||
# forcedItem is an item ID for Bug Bite/Pluck/Fling, and 0 otherwise.
|
||||
# fling is for Fling only.
|
||||
def pbItemHPHealCheck(forcedItem=0,fling=false)
|
||||
return if !canHeal?
|
||||
return if forcedItem==0 && !itemActive?
|
||||
thisItem = (forcedItem>0) ? forcedItem : @item
|
||||
if BattleHandlers.triggerHPHealItem(thisItem,self,@battle,(forcedItem!=0))
|
||||
|
||||
Reference in New Issue
Block a user