mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:49:19 +00:00
Merge pull request #2032 from Citadel-Station-13/upstream-merge-29257
[MIRROR] Fixes monkeys trying to take offhands
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user