From f4608226f5d6e208f00c864227db7862d23abbc4 Mon Sep 17 00:00:00 2001 From: Aylong Date: Fri, 15 Nov 2024 00:52:22 +0200 Subject: [PATCH] Fix id skins interaction --- modular_ss220/objects/code/id_skins/_id_skins_base.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modular_ss220/objects/code/id_skins/_id_skins_base.dm b/modular_ss220/objects/code/id_skins/_id_skins_base.dm index 05788863f4a0..41af6492eeaa 100644 --- a/modular_ss220/objects/code/id_skins/_id_skins_base.dm +++ b/modular_ss220/objects/code/id_skins/_id_skins_base.dm @@ -26,8 +26,11 @@ if(skin_applied) . += span_notice("Нажмите Alt-Click на карту, чтобы снять наклейку.") -/obj/item/card/id/AltClick(mob/user) - if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || user.restrained()) +/obj/item/card/id/AltClick(mob/living/carbon/user) + if(!iscarbon(user)) + return + + if(!Adjacent(user) || user.incapacitated()) to_chat(user, span_warning("У вас нет возможности снять наклейку!")) return