Fixes some items on working on people on tables

This commit is contained in:
Yoshax
2016-07-26 03:10:54 +01:00
parent 709a7ef1e6
commit f90f2ec08a
4 changed files with 60 additions and 2 deletions

View File

@@ -19,10 +19,15 @@
if(!icon_state)
icon_state = "pill[rand(1, 20)]"
/obj/item/weapon/reagent_containers/pill/attack(mob/M as mob, mob/user as mob, def_zone)
/obj/item/weapon/reagent_containers/pill/do_surgery(mob/M, mob/user)
if(user.a_intent != I_HELP) //in case it is ever used as a surgery tool
return ..()
attack(M, user) //default surgery behaviour is just to scan as usual
return 1
/obj/item/weapon/reagent_containers/pill/attack(mob/M as mob, mob/user as mob)
if(M == user)
if(istype(M, /mob/living/carbon/human))
var/mob/living/carbon/human/H = M
if(!H.check_has_mouth())