From 692301efb6aae1b061a2646c742afb246a235eaa Mon Sep 17 00:00:00 2001 From: SteelSlayer Date: Wed, 8 Jan 2020 09:02:52 -0600 Subject: [PATCH 1/2] Fixes a runtime with revenants --- code/_onclick/observer.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm index 5f0c94ecee6..8397a689089 100644 --- a/code/_onclick/observer.dm +++ b/code/_onclick/observer.dm @@ -61,6 +61,8 @@ // health + cyborg analyzer for ghosts /mob/living/attack_ghost(mob/dead/observer/user) + if(!istype(user)) + return if(user.client && user.health_scan) if(issilicon(src) || ismachine(src)) robot_healthscan(user, src) From f0b50ab60c89f02838f787adb3d8d15b01c87424 Mon Sep 17 00:00:00 2001 From: SteelSlayer Date: Sat, 11 Jan 2020 21:24:08 -0600 Subject: [PATCH 2/2] explanation comment --- code/_onclick/observer.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm index 8397a689089..460bc0193f6 100644 --- a/code/_onclick/observer.dm +++ b/code/_onclick/observer.dm @@ -61,7 +61,7 @@ // health + cyborg analyzer for ghosts /mob/living/attack_ghost(mob/dead/observer/user) - if(!istype(user)) + if(!istype(user)) // Make sure user is actually an observer. Revenents also use attack_ghost, but do not have the health_scan var. return if(user.client && user.health_scan) if(issilicon(src) || ismachine(src))