Fixes a runtime with syringes but actually this time (#7487)

Fixes a runtime with syringes but actually this time
This commit is contained in:
MarinaGryphon
2019-11-23 03:11:55 -06:00
committed by Erki
parent b2b371ee0d
commit 6263d21eca
2 changed files with 43 additions and 2 deletions

View File

@@ -127,8 +127,8 @@
if(user.a_intent == I_GRAB && ishuman(user) && ishuman(target)) // we could add other things here eventually. trepanation maybe
var/mob/living/carbon/human/H = target
if (check_zone(user.zone_sel.selecting) == BP_CHEST) // impromptu needle thoracostomy, re-inflate a collapsed lung
var/P = (user == target) ? "their" : (target + "\'s")
var/SM = (user == target) ? "your" : (target + "\'s")
var/P = (user == target) ? "their" : (target.name + "\'s")
var/SM = (user == target) ? "your" : (target.name + "\'s")
user.visible_message(span("danger", "[user] aims \the [src] between [P] ribs!"), span("danger", "You aim \the [src] between [SM] ribs!"))
if(!do_mob(user, target, 1.5 SECONDS))
return