diff --git a/Data/Scripts/012_Battle/004_AI/002_AI_Item.rb b/Data/Scripts/012_Battle/004_AI/002_AI_Item.rb index c999f2083..ba83512d1 100644 --- a/Data/Scripts/012_Battle/004_AI/002_AI_Item.rb +++ b/Data/Scripts/012_Battle/004_AI/002_AI_Item.rb @@ -20,7 +20,7 @@ class PokeBattle_AI # NOTE: The AI will only consider using an item on the Pokémon it's currently # choosing an action for. def pbEnemyItemToUse(idxBattler) - return 0 if !@internalBattle + return 0 if !@battle.internalBattle items = @battle.pbGetOwnerItems(idxBattler) return 0 if !items || items.length==0 # Determine target of item (always the Pokémon choosing the action)