mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Fixed partner trainers not having Bag items, fixed Flame Burst AI bug, added AI for Wonder Guard + switching
This commit is contained in:
@@ -55,7 +55,7 @@ class Battle
|
||||
end
|
||||
else
|
||||
items = pbGetOwnerItems(idxBattler)
|
||||
items.delete_at(items.index(item))
|
||||
items.delete_at(items.index(item)) if items
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -81,7 +81,9 @@ class Battle
|
||||
@mega_rings.each { |item| return GameData::Item.get(item).name if $bag.has?(item) }
|
||||
else
|
||||
trainer_items = pbGetOwnerItems(idxBattler)
|
||||
@mega_rings.each { |item| return GameData::Item.get(item).name if trainer_items&.include?(item) }
|
||||
if trainer_items
|
||||
@mega_rings.each { |item| return GameData::Item.get(item).name if trainer_items.include?(item) }
|
||||
end
|
||||
end
|
||||
end
|
||||
return _INTL("Mega Ring")
|
||||
|
||||
Reference in New Issue
Block a user