health assembly altclick sanity (#81264)

## About The Pull Request

checks can_interact now

## Why It's Good For The Game
bug bad

## Changelog
🆑
fix: you may not toggle health assemblies from any range, even while
crit
/🆑
This commit is contained in:
jimmyl
2024-02-05 12:13:50 -05:00
committed by GitHub
parent 55fca245c9
commit 43dd32e4d0
+3
View File
@@ -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."))