WeakAuras

WeakAuras

206M Downloads

As a rogue, getting this whenever I enter combat on latest release

mightykong opened this issue ยท 1 comments

commented

Describe the bug

Getting an error whenever I enter combat with WeakAura enabled

Do you have an error log of what happened?

120x [string "--[==[ Error in 'Between the Eyes 2':'initi..."]:6: bad argument #1 to 'GetPowerLevel' (Usage: local powerLevel = C_AzeriteItem.GetPowerLevel(azeriteItemLocation))
[string "--[==[ Error in 'Between the Eyes 2':'initialization' ]==] return function() aura_env.countAzeriteTrait = function(spellId)
    local count = 0
    local azeriteItemLocation = C_AzeriteItem.FindActiveAzeriteItem()
    if (not azeriteItemLocation) then return 0 end
    
    local azeritePowerLevel = C_AzeriteItem.GetPowerLevel(azeriteItemLocation)
    local specID = GetSpecializationInfo(GetSpecialization())
    
    for slot = 1, 5, 2 do
        local item = Item:CreateFromEquipmentSlot(slot)
        if (not item:IsItemEmpty()) then
            local itemLocation = item:GetItemLocation()
            if (C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem(itemLocation)) then
                local tierInfo = C_AzeriteEmpoweredItem.GetAllTierInfo(itemLocation)
                for tier, info in next, tierInfo do
                    if (info.unlockLevel <= azeritePowerLevel) then
                        for _, powerID in next, info.azeritePowerIDs do
                            if C_AzeriteEmpoweredItem.IsPowerSelected(itemLocation, powerID)
                            and C_AzeriteEmpoweredItem.IsPowerAvailableForSpec(powerID, specID)
                            then
                                local powerInfo = C_AzeriteEmpoweredItem.GetPowerInfo(powerID)
                                if powerInfo.spellID == spellId then
                                    count = count + 1
                                end
                            end
                        end
                    end
                end
            end
        end
    end
    return count
end
 end"]:6: in function `countAzeriteTrait'
[string "--[==[ Error in 'Between the Eyes 2' ]==] return function(a)
    -- change spell id here
    local spellid = 278676
    -- change minimum number of traits to be active here
    local minimumTraits = 1
    local stacks = aura_env.countAzeriteTrait(spellid)
    local name, _, icon = GetSpellInfo(spellid)
    a[""] = {
        name = name,
        stacks = stacks,
        icon = icon,
        changed = true,
        show = stacks >= minimumTraits
    }
    return true
end"]:6: in function <[string "--[==[ Error in 'Between the Eyes 2' ]==] r..."]:1>
[string "=[C]"]: in function `xpcall'
[string "@WeakAuras\GenericTrigger.lua"]:541: in function <WeakAuras\GenericTrigger.lua:534>
[string "@WeakAuras\GenericTrigger.lua"]:805: in function `ScanWithFakeEvent'
[string "@WeakAuras\GenericTrigger.lua"]:1089: in function `LoadDisplays'
[string "@WeakAuras\WeakAuras-3.1.2-1-gdecfdca.lua"]:1663: in function `LoadDisplays'
[string "@WeakAuras\WeakAuras-3.1.2-1-gdecfdca.lua"]:1482: in function <WeakAuras\WeakAuras.lua:1359>
[string "@WeakAuras\WeakAuras-3.1.2-1-gdecfdca.lua"]:1514: in function `ScanForLoads'
[string "@WeakAuras\WeakAuras-3.1.2-1-gdecfdca.lua"]:1564: in function <WeakAuras\WeakAuras.lua:1562>

To Reproduce

Start combat with any mob

Screenshots

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?

Yes

Which version of WeakAuras are you using?

3.1.2-gdd58908

Are you on World of Warcraft Classic or Retail?

  • Classic
  • [ X] Retail

Was it working in a previous version? If yes, which was the last good one?

Yes, was working while I was leveling.

Additional Info

commented

That's a error in your aura: "Between the Eyes 2"