Merge pull request #6667 from Heroman3003/voidsuti-surgery

Prevents surgery from being done while wearing a voidsuit
This commit is contained in:
Atermonera
2020-02-10 13:01:34 -08:00
committed by VirgoBot
parent 12a412be47
commit 571fe9f734
13 changed files with 125 additions and 44 deletions

View File

@@ -44,8 +44,8 @@ avoid code duplication. This includes items that may sometimes act as a standard
/mob/living/attackby(obj/item/I, mob/user, var/attack_modifier)
if(!ismob(user))
return 0
if(can_operate(src) && I.do_surgery(src,user))
if(I.can_do_surgery(src,user))
if(can_operate(src) && I.can_do_surgery(src,user))
if(I.do_surgery(src,user))
return 1
else
return 0