Fixes monkeys trying to take offhands

This commit is contained in:
CitadelStationBot
2017-07-15 22:33:14 -05:00
parent d21766956e
commit f634966a34
@@ -272,7 +272,11 @@
if(Adjacent(target) && isturf(target.loc)) // if right next to perp
// check if target has a weapon
var/obj/item/weapon/W = locate(/obj/item/weapon) in target.held_items
var/obj/item/weapon/W
for(var/obj/item/weapon/I in target.held_items)
if(!(I.flags & ABSTRACT))
W = I
break
// if the target has a weapon, chance to disarm them
if(W && prob(MONKEY_ATTACK_DISARM_PROB))