Fixes thief

This commit is contained in:
chardub
2025-03-08 15:24:35 -05:00
parent 60de077d01
commit 6248ccd061

View File

@@ -3226,10 +3226,8 @@ class PokeBattle_Move_0F1 < PokeBattle_Move
# removed target.item == target.initialItem, this may cause bugs.
if @battle.wildBattle? && target.opposes? && !user.initialItem
user.setInitialItem(target.item)
target.pbRemoveItem
else
target.pbRemoveItem(false)
end
target.pbRemoveItem(false)
@battle.pbDisplay(_INTL("{1} stole {2}'s {3}!",user.pbThis,target.pbThis(true),itemName))
user.pbHeldItemTriggerCheck
end