diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm
index 5cd8c2b68e..750f620956 100644
--- a/code/modules/mob/mob.dm
+++ b/code/modules/mob/mob.dm
@@ -348,10 +348,11 @@ var/list/slot_equipment_priority = list( \
return
else
var/deathtime = world.time - src.timeofdeath
- var/mob/dead/observer/G = src
- if(G.has_enabled_antagHUD == 1 && config.antag_hud_restricted)
- usr << "\blue Upon using the antagHUD you forfeighted the ability to join the round."
- return
+ if(istype(src,/mob/dead/observer))
+ var/mob/dead/observer/G = src
+ if(G.has_enabled_antagHUD == 1 && config.antag_hud_restricted)
+ usr << "\blue Upon using the antagHUD you forfeighted the ability to join the round."
+ return
var/deathtimeminutes = round(deathtime / 600)
var/pluralcheck = "minute"
if(deathtimeminutes == 0)