Skip to content

Commit

Permalink
[MIRROR] Fixes Ghostize Runtime [MDB IGNORE] (#834)
Browse files Browse the repository at this point in the history
* Fixes Ghostize Runtime (#79927)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: san7890 <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2023
1 parent 6caecbc commit a21549c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,13 @@ Works together with spawning an observer, noted above.
ghost.client?.init_verbs()
if(!can_reenter_corpse)// Disassociates observer mind from the body mind
ghost.mind = null
ghost.client?.player_details.time_of_death = ghost.mind?.current ? mind.current.timeofdeath : world.time

var/recordable_time = world.time
var/mob/living/former_mob = ghost.mind?.current
if(isliving(former_mob))
recordable_time = former_mob.timeofdeath

ghost.client?.player_details.time_of_death = recordable_time
SEND_SIGNAL(src, COMSIG_MOB_GHOSTIZED)
return ghost

Expand Down

0 comments on commit a21549c

Please sign in to comment.