mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 06:57:42 +01:00
Fixes a runtime with revenants when they click on mobs (#12890)
* Fixes a runtime with revenants * explanation comment
This commit is contained in:
@@ -61,6 +61,8 @@
|
||||
|
||||
// health + cyborg analyzer for ghosts
|
||||
/mob/living/attack_ghost(mob/dead/observer/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))
|
||||
robot_healthscan(user, src)
|
||||
|
||||
Reference in New Issue
Block a user