From bb452b8f20e7726a7ea68d96eef5c2a69417808e Mon Sep 17 00:00:00 2001 From: Infus Date: Mon, 13 Aug 2018 22:24:42 +0200 Subject: [PATCH] Don't run the tsu trigger function to decide CanHaveTooltip The Icon's modify function checks CanHaveTooltip in modify, which is called for all auras whether loaded or not. Thus, the init and trigger functions of unloaded tsus were run. So instead just assume that tsu auras can have tooltips. --- WeakAuras/GenericTrigger.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/WeakAuras/GenericTrigger.lua b/WeakAuras/GenericTrigger.lua index ccc1fa2f29..b11e722c22 100644 --- a/WeakAuras/GenericTrigger.lua +++ b/WeakAuras/GenericTrigger.lua @@ -2818,15 +2818,7 @@ function GenericTrigger.CanHaveTooltip(data, triggernum) if (trigger.type == "custom") then if (trigger.custom_type == "stateupdate") then - local allStates = {}; - WeakAuras.ActivateAuraEnvironment(data.id); - RunTriggerFunc(allStates, events[data.id][triggernum], data.id, triggernum, "OPTIONS"); - WeakAuras.ActivateAuraEnvironment(nil); - for id, state in pairs(allStates) do - if (state.spellId or state.itemId or (state.unit and (state.unitBuffIndex or state.unitDebuffIndex))) then - return "custom"; - end - end + return true; end end