mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Fixed code relating to initial held items in battle, fixed default functionality of rand when no number is given
This commit is contained in:
@@ -1123,7 +1123,7 @@ BattleHandlers::TargetItemOnHit.add(:STICKYBARB,
|
||||
target.item = nil
|
||||
target.effects[PBEffects::Unburden] = true
|
||||
if battle.wildBattle? && !user.opposes?
|
||||
if !user.initialItem && target.initialItem==user.item
|
||||
if !user.initialItem && user.item == target.initialItem
|
||||
user.setInitialItem(user.item)
|
||||
target.setInitialItem(nil)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user