the ! should always be in front of the word, not after it
This commit is contained in:
aprogergely
2021-06-27 18:37:23 +02:00
committed by GitHub
parent 3c3802b80b
commit 84b1512c9b

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)