Merge pull request #25780 from Cyberboss/patch-33

Fixes putting items in incapacited mob's hands
This commit is contained in:
Joan Lung
2017-04-02 19:02:57 -04:00
committed by GitHub
+2 -1
View File
@@ -669,7 +669,8 @@
if(what && Adjacent(who) && what.mob_can_equip(who, src, final_where, TRUE))
if(temporarilyRemoveItemFromInventory(what))
if(where_list)
who.put_in_hand(what, where_list[2])
if(!who.put_in_hand(what, where_list[2]))
what.forceMove(get_turf(who))
else
who.equip_to_slot(what, where, TRUE)