Skip to content

Commit

Permalink
Fix gibbed humans not properly checking admin z-level
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Jun 22, 2023
1 parent a7b6451 commit 684f02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ Works together with spawning an observer, noted above.
ghost.langchat_make_image()

SStgui.on_transfer(src, ghost)
if(is_admin_level(z))
ghost.timeofdeath = 0 // Bypass respawn limit if you die on the admin zlevel
if(is_admin_level((get_turf(src))?.z)) // Gibbed humans ghostize the brain in their head which itself is z 0
ghost.timeofdeath = 1 // Bypass respawn limit if you die on the admin zlevel

ghost.key = key
ghost.mind = mind
Expand Down

0 comments on commit 684f02c

Please sign in to comment.