#Elemental Blast Conditionals

7 messages · Page 1 of 1 (latest)

tiny spruce
#

You shouldn't use alpha= 0% to hide your aura.

#

setup your trigger activation instead

#

!customactivation

rich talonBOT
tiny spruce
#

looks like all you want is

function(t)
    return t[1] and t[2] and t[3] and not t[4]
end
unborn marsh
#

Hey thanks for your answer,
I looked a bit more into it and still had some inconsistency with the triggers ..

Instead of having 4 trigger for the same thing, wouldn't it be better to just use a custom trigger that will check all condition ?
As I've zero experience with lua, I came with something like this :

function()
    -- Maelstrom >= 6
    local buff344179 = select(16, WA_GetUnitBuff("player", 344179)) or 0
    if buff344179 < 6 then return false end
    
    -- No Tempest Buff
    if WA_GetUnitBuff("player", 454015) then return false end
    
    -- EB Charges > 0
    local charges, _, _, _ = GetSpellCharges(117014)
    if not charges or charges < 1 then return false end
    
    -- Wolves count >= 4
    local auraIDs = {224125, 224126, 224127}
    local totalStacks = 0
    for _, auraID in ipairs(auraIDs) do
        local _, _, count = WA_GetUnitBuff("player", auraID)
        totalStacks = totalStacks + (count or 0)
    end
    if totalStacks < 4 then return false end
    
    return true
end

Would this be even remotely close to a working trigger ?

tiny spruce
#

that looks like someting chat GPT generated.