Fixed not getting berry's effect at full HP or under Heal Block when using Bug Bite/Pluck

This commit is contained in:
Maruno17
2020-09-09 21:37:37 +01:00
parent 9c808d4c86
commit 891cc2791f
4 changed files with 26 additions and 22 deletions

View File

@@ -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))