From 43dd32e4d098062fd451c1ade57014d01c6288e5 Mon Sep 17 00:00:00 2001 From: jimmyl <70376633+mc-oofert@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:13:50 +0100 Subject: [PATCH] health assembly altclick sanity (#81264) ## About The Pull Request checks can_interact now ## Why It's Good For The Game bug bad ## Changelog :cl: fix: you may not toggle health assemblies from any range, even while crit /:cl: --- code/modules/assembly/health.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/assembly/health.dm b/code/modules/assembly/health.dm index 6bb12f327ea..23c329894e7 100644 --- a/code/modules/assembly/health.dm +++ b/code/modules/assembly/health.dm @@ -38,6 +38,9 @@ return secured /obj/item/assembly/health/AltClick(mob/living/user) + if(!can_interact(user)) + return + if(alarm_health == HEALTH_THRESHOLD_CRIT) alarm_health = HEALTH_THRESHOLD_DEAD to_chat(user, span_notice("You toggle [src] to \"detect death\" mode."))