From 5486867e072f40477f2c15d9fa7a917dbcb178b9 Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Mon, 5 Feb 2024 13:12:09 -0500 Subject: [PATCH] [MIRROR] ethereal disco ball altclick sanity (#781) * ethereal disco ball altclick sanity (#81268) ## About The Pull Request im getting tired of writing this but you may no longer altclick to unanchor or anchor when crit or at range or otherwise ## Why It's Good For The Game bug bad ## Changelog :cl: fix: you may no longer altclick ethereal disco balls while unconscious to anchor/unanchor /:cl: * ethereal disco ball altclick sanity --------- Co-authored-by: jimmyl <70376633+mc-oofert@users.noreply.github.com> --- code/game/objects/items/etherealdiscoball.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/objects/items/etherealdiscoball.dm b/code/game/objects/items/etherealdiscoball.dm index 0b8183a7237..89eff5eea5f 100644 --- a/code/game/objects/items/etherealdiscoball.dm +++ b/code/game/objects/items/etherealdiscoball.dm @@ -31,6 +31,9 @@ /obj/structure/etherealball/attack_hand(mob/living/carbon/human/user, list/modifiers) . = ..() + if(!can_interact(user)) + return + if(TurnedOn) TurnOff() to_chat(user, span_notice("You turn the disco ball off!"))