Merge pull request #2032 from Citadel-Station-13/upstream-merge-29257

[MIRROR] Fixes monkeys trying to take offhands
This commit is contained in:
LetterJay
2017-07-15 23:19:59 -05:00
committed by GitHub

View File

@@ -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))