From 16407c641bce0b76b29fc639bd9cc02f7551295d Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Wed, 5 Feb 2025 22:32:56 +0100 Subject: [PATCH] Makes ui buttons call the right proc (#28267) --- code/game/objects/items.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 1de8b63b6c0..270e46c314b 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -581,7 +581,10 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons // The default action is attack_self(). // Checks before we get to here are: mob is alive, mob is not restrained, paralyzed, asleep, resting, laying, item is on the mob. /obj/item/proc/ui_action_click(mob/user, actiontype) - attack_self__legacy__attackchain(user) + if(new_attack_chain) + activate_self(user) + else + attack_self__legacy__attackchain(user) /obj/item/proc/IsReflect(def_zone) // This proc determines if and at what% an object will reflect energy projectiles if it's in l_hand,r_hand or wear_suit return FALSE