Skip to content

Commit

Permalink
Update xeno_nest.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGamerdk committed Jun 27, 2023
1 parent da4664d commit 1730018
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,12 @@
if(buckled_human.stat == DEAD )
buckled_mob_density = FALSE

. = ..()

var/mob/dead/observer/G = ghost_of_buckled_mob
var/datum/mind/M = G?.mind
ghost_of_buckled_mob = null

. = ..() //Very important that this comes after, since it deletes the nest and clears ghost_of_buckled_mob

if(!istype(buckled_human) || !istype(G) || !istype(M) || buckled_human.undefibbable || buckled_human.mind || M.original != buckled_human || buckled_human.chestburst)
return // Zealous checking as most is handled by ghost code
to_chat(G, FONT_SIZE_HUGE(SPAN_DANGER("You have been freed from your nest and may go back to your body! (Look for 'Re-enter Corpse' in Ghost verbs, or <a href='?src=\ref[G];reentercorpse=1'>click here</a>!)")))
Expand Down

0 comments on commit 1730018

Please sign in to comment.