Makes ui buttons call the right proc (#28267)

This commit is contained in:
DGamerL
2025-02-05 21:32:56 +00:00
committed by GitHub
parent 1c4a5180ed
commit 16407c641b
+4 -1
View File
@@ -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