Thread Tools Display Modes
05-12-22, 11:52 AM   #1
LonelyLitten
A Kobold Labourer
Join Date: May 2022
Posts: 1
Weakauras: Delaying trigger check

I am attempting to change this weakaura https://wago.io/IxMhs-_dB to instead of using the READY_CHECK event instead use the EQUIPMENT_SWAP_FINISHED event.

However just swapping to EQUIPMENT_SWAP_FINISHED leads to false positives, my guess being that the event is triggered before the game actually processes the items being added.

Is there a way to delay the trigger check a few seconds to ensure everything is correct before returning?

I have tried using C_Timer.After but that doesnt impact the return value of the custom trigger function

Code:
function(trigger)
    
    spellId = aura_env.spellId
    return C_Timer.After(3, function()
            if (GetPlayerAuraBySpellID(spellId) == nil) then
                print("bugged")
                    return true
                else
                    return false
                end
        end)
    end
obviously those returns are meaningless, but I think they show the goal of what I am looking to do here. print("bugged") being where i want to show the aura.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Weakauras: Delaying trigger check

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off