mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Use PokeBattle_Pokemon#hasItem? instead of isConst?
This commit is contained in:
@@ -826,7 +826,7 @@ def pbGiveItemToPokemon(item,pkmn,scene,pkmnid=0)
|
||||
end
|
||||
if pkmn.hasItem?
|
||||
olditemname = PBItems.getName(pkmn.item)
|
||||
if isConst?(pkmn.item,PBItems,:LEFTOVERS)
|
||||
if pkmn.hasItem?(:LEFTOVERS)
|
||||
scene.pbDisplay(_INTL("{1} is already holding some {2}.\1",pkmn.name,olditemname))
|
||||
elsif newitemname.starts_with_vowel?
|
||||
scene.pbDisplay(_INTL("{1} is already holding an {2}.\1",pkmn.name,olditemname))
|
||||
|
||||
Reference in New Issue
Block a user