mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
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:
@@ -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."))
|
||||
|
||||
Reference in New Issue
Block a user