Prevented toggling a suit helmet while holding the suit.

This commit is contained in:
Zuhayr
2014-05-25 21:57:39 +09:30
committed by ZomgPonies
parent 3af5ac76d8
commit 29f7200968
+4 -1
View File
@@ -215,14 +215,17 @@
set category = "Object"
set src in usr
if(!istype(src.loc,/mob/living)) return
if(!helmet)
usr << "There is no helmet installed."
return
var/mob/living/carbon/human/H = usr
if(!istype(H)) return
if(!istype(H)) return
if(H.stat) return
if(H.wear_suit != src) return
if(H.head == helmet)
helmet.canremove = 1