From b487bbf07d2ea2318ae1ace3729c08064f8d09a8 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 28 May 2024 05:09:00 +0200 Subject: [PATCH] [MIRROR] Fixes Rust Victims being permanently exiled to the puke-zone. (#27868) * Fixes Rust Victims being permanently exiled to the puke-zone. (#83417) ## About The Pull Request closes : https://github.com/tgstation/tgstation/issues/83375 ## Why It's Good For The Game Deleting Heretic rust you are standing on now properly deletes the status effect. ## Changelog :cl: fix: Rust debuffs now gets properly removed if you derust a tile you are standing on. /:cl: * Fixes Rust Victims being permanently exiled to the puke-zone. --------- Co-authored-by: EnterTheJake <102721711+EnterTheJake@users.noreply.github.com> --- code/datums/elements/rust.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/datums/elements/rust.dm b/code/datums/elements/rust.dm index 060de19494f..396307197c4 100644 --- a/code/datums/elements/rust.dm +++ b/code/datums/elements/rust.dm @@ -98,6 +98,8 @@ UnregisterSignal(source, COMSIG_ATOM_EXITED) for(var/obj/effect/glowing_rune/rune_to_remove in source) qdel(rune_to_remove) + for(var/mob/living/victim in source) + victim.remove_status_effect(/datum/status_effect/rust_corruption) /datum/element/rust/heretic/proc/on_entered(turf/source, atom/movable/entered, ...) SIGNAL_HANDLER