mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 15:44:57 +00:00
Merge branch 'master' into dev
This commit is contained in:
@@ -124,8 +124,13 @@ class PokeBattle_Battler
|
||||
#=============================================================================
|
||||
# Held item consuming/removing
|
||||
#=============================================================================
|
||||
def pbCanConsumeBerry?(_item, check_gluttony = true)
|
||||
def canConsumeBerry?
|
||||
return false if @battle.pbCheckOpposingAbility(:UNNERVE, @index)
|
||||
return true
|
||||
end
|
||||
|
||||
def canConsumePinchBerry?(_item, check_gluttony = true)
|
||||
return false if !canConsumeBerry?
|
||||
return true if @hp <= @totalhp / 4
|
||||
return true if @hp <= @totalhp / 2 && (!check_gluttony || hasActiveAbility?(:GLUTTONY))
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user