mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 12:37:50 +01:00
Merge pull request #4927 from Heroman3003/hud-icon-testing
Fixes hud-zshadow bug
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
sync_icon(L)
|
||||
|
||||
/mob/zshadow/Destroy()
|
||||
owner.shadow = null
|
||||
owner = null
|
||||
..() //But we don't return because the hint is wrong
|
||||
return QDEL_HINT_QUEUE
|
||||
|
||||
@@ -158,6 +158,8 @@
|
||||
if(istype(AM, /mob/living))
|
||||
var/mob/living/M = AM
|
||||
M.gib()
|
||||
else if(istype(AM, /mob/zshadow))
|
||||
AM.Destroy() //prevent deleting shadow without deleting shadow's shadows
|
||||
else if(AM.simulated && !(istype(AM, /mob/observer)))
|
||||
qdel(AM)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user