ability ball & incubators fix

This commit is contained in:
infinitefusion
2022-09-05 14:17:25 -04:00
parent d58c71781d
commit 3bf6a1e2ba
6 changed files with 48 additions and 31 deletions

View File

@@ -59,7 +59,7 @@ class PokeBattle_Battle
end
def pbReturnUnusedItemToBag(item,idxBattler)
return if item!
return if !item
useType = GameData::Item.get(item).battle_use
return if useType==0 || (useType>=6 && useType<=10) # Not consumed upon use
if pbOwnedByPlayer?(idxBattler)