mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] some istype to macros (#9802)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
73486c399b
commit
ed79946ade
@@ -52,7 +52,7 @@
|
||||
|
||||
/obj/machinery/transhuman/autoresleever/attackby(var/mob/user) //Let's not let people mess with this.
|
||||
update_icon()
|
||||
if(istype(user,/mob/observer/dead))
|
||||
if(isobserver(user))
|
||||
attack_ghost(user)
|
||||
else
|
||||
return
|
||||
@@ -61,7 +61,7 @@
|
||||
if(stat)
|
||||
to_chat(ghost, span_warning("This machine is not functioning..."))
|
||||
return
|
||||
if(!istype(ghost,/mob/observer/dead))
|
||||
if(!isobserver(ghost))
|
||||
return
|
||||
if(ghost.mind && ghost.mind.current && ghost.mind.current.stat != DEAD && ghost.mind.current.enabled == TRUE) //CHOMPEdit - Disabled body shouldn't block this.
|
||||
if(istype(ghost.mind.current.loc, /obj/item/mmi))
|
||||
|
||||
Reference in New Issue
Block a user