mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-12 02:13:48 -04:00
Updated transferitemweapon
This commit is contained in:
@@ -16,7 +16,11 @@ def run(core, actor, target, commandString):
|
||||
print 'Error: New container is same as old container.'
|
||||
return;
|
||||
|
||||
oldContainer.transferTo(actor, container, target)
|
||||
if oldContainer == actor:
|
||||
core.equipmentService.unequip(actor, target)
|
||||
elif container == actor:
|
||||
core.equipmentService.equip(actor, target)
|
||||
else:
|
||||
oldContainer.transferTo(actor, container, target)
|
||||
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user