Adds a can_inject check to IV Drips

Syringes and hyposprays check, so too do IV needles.
This commit is contained in:
Poojawa
2019-04-15 01:01:16 -05:00
parent df40dcf553
commit 25d77bac91
+7 -1
View File
@@ -80,7 +80,13 @@
if(!target.has_dna())
to_chat(usr, "<span class='danger'>The drip beeps: Warning, incompatible creature!</span>")
return
var/mob/living/L
if(isliving(target))
L = target
if(!L.can_inject(user, 1))
return
if(Adjacent(target) && usr.Adjacent(target))
if(beaker)
usr.visible_message("<span class='warning'>[usr] attaches [src] to [target].</span>", "<span class='notice'>You attach [src] to [target].</span>")