From 450f33de3928f4fa62f6042cb3f2e976341efd89 Mon Sep 17 00:00:00 2001 From: Seris02 <49109742+Seris02@users.noreply.github.com> Date: Fri, 31 Jan 2020 11:46:10 +0800 Subject: [PATCH] fix --- code/modules/clothing/shoes/magboots.dm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 4086ad6073..ed4f5c3d24 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -71,13 +71,18 @@ to_chat(A,"[user]'s magboots press down on you, crushing you!") A.emote("scream") -/obj/item/clothing/shoes/magboots/crushing/equipped(mob/user,slot) +/obj/item/clothing/shoes/magboots/crushing/attack_self(mob/user) . = ..() - if (slot == SLOT_SHOES) + if (magpulse) RegisterSignal(user, COMSIG_MOVABLE_MOVED,.proc/crush) else UnregisterSignal(user,COMSIG_MOVABLE_MOVED) +/obj/item/clothing/shoes/magboots/crushing/equipped(mob/user,slot) + . = ..() + if (slot == SLOT_SHOES) + RegisterSignal(user, COMSIG_MOVABLE_MOVED,.proc/crush) + /obj/item/clothing/shoes/magboots/crushing/dropped(mob/user) . = ..() - UnregisterSignal(user,COMSIG_MOVABLE_MOVED) \ No newline at end of file + UnregisterSignal(user,COMSIG_MOVABLE_MOVED)