From ceee26aeba67a1a850e4057799d39cb8098d8e4e Mon Sep 17 00:00:00 2001 From: Cameron Lennox Date: Sun, 28 Dec 2025 15:12:01 -0500 Subject: [PATCH] Resleever minifix (#18946) Makes it so if a ghost is given the resleeve prompt and accidentally closes it, it allows them to manually click it to resleeve --- code/modules/resleeving/autoresleever.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/resleeving/autoresleever.dm b/code/modules/resleeving/autoresleever.dm index dfc3cb53af..140cf0b80e 100644 --- a/code/modules/resleeving/autoresleever.dm +++ b/code/modules/resleeving/autoresleever.dm @@ -145,6 +145,8 @@ GLOBAL_LIST_EMPTY(active_autoresleevers) var/slot = ghost.client.prefs.default_slot if(tgui_alert(ghost, "Would you like to be resleeved?", "Resleeve", list("No","Yes")) != "Yes") + if(respawn >= world.time - ghost.timeofdeath) //We were given the option to resleeve due to an outside event, but closed the input box (be it by typing or otherwise) so we allow clicking the autosleever to revive. + ghost.timeofdeath = world.time - respawn return //This keeps people from dying in round, clicking the autoresleever, then swapping savefiles and clicking 'yes' if(slot != ghost.client.prefs.default_slot && (!equip_body || !ghost_spawns))