mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
rehold consummable held items automatically after battle if some left in bag
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -141,7 +141,14 @@ class PokeBattle_Battler
|
||||
def pbRemoveItem(permanent = true)
|
||||
@effects[PBEffects::ChoiceBand] = nil
|
||||
@effects[PBEffects::Unburden] = true if self.item
|
||||
setInitialItem(nil) if permanent && self.item == self.initialItem
|
||||
|
||||
if permanent && self.item == self.initialItem
|
||||
if $PokemonBag.pbQuantity(self.initialItem)>=1
|
||||
$PokemonBag.pbDeleteItem(self.initialItem)
|
||||
else
|
||||
setInitialItem(nil)
|
||||
end
|
||||
end
|
||||
self.item = nil
|
||||
end
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user