[MIRROR] Fixes NODROP guns dropping anyway when shooting yourself clumsily in the leg [MDB IGNORE] (#9222)

* feex (#62511)

this includes the anti-drop implant issue as well

* Fixes NODROP guns dropping anyway when shooting yourself clumsily in the leg

Co-authored-by: Sealed101 <75863639+Sealed101@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-11-04 10:55:38 +00:00
committed by GitHub
parent 1bc55ff58b
commit adf26912e7

View File

@@ -276,7 +276,8 @@
var/shot_leg = pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG)
process_fire(user, user, FALSE, null, shot_leg)
SEND_SIGNAL(user, COMSIG_MOB_CLUMSY_SHOOT_FOOT)
user.dropItemToGround(src, TRUE)
if(!HAS_TRAIT(src, TRAIT_NODROP))
user.dropItemToGround(src, TRUE)
return TRUE
/obj/item/gun/can_trigger_gun(mob/living/user)