WeakAuras

WeakAuras

206M Downloads

Polluting clones after WeakAuras.clones was removed

Translitdk opened this issue ยท 1 comments

commented

Description

Switching from the old code to a new one causing random auras to anchor to the auras with made changes
Example: this aura https://wago.io/w4azXM4rx
When adapting new on init code to

local e = aura_env

local sortA = function(a, b) return a.expirationTime < b.expirationTime end
local sortD = function(a, b) return a.expirationTime > b.expirationTime end
local parent = aura_env.region
e.sortAndOffset = function(options)
    local spacing = e.config.spacing -- adjust to preference
    local count = 0
    local states = WeakAuras.GetTriggerStateForTrigger(aura_env.id, 1)
    
    if e.config.sortRunes == 2 then
        table.sort(states, sortA)
    elseif e.config.sortRunes == 3 then
        table.sort(states, sortD)
    end
    
    local xOffset = 0
    local yOffset = 0
    local total = #states --in case cloneIDs are numbers (1-6). Won't work wit hash
    
    for cloneID, state in pairs(states) do
        local region = WeakAuras.GetRegion(aura_env.id, cloneID)
       
        if region then
            xOffset = 0 - (region.width + spacing) / 2 * (total-1) + (count * (region.width + spacing))
            
            region:SetAnchor("CENTER" , parent, "CENTER")
            region:SetOffset(xOffset, yOffset)
            
            count = count + 1 --can be replaced with (cloneID-1)
        end
    end
end

it becomes a magnet to other auras (1 random). Looks like pollution or something for other regions

https://i.imgur.com/iY3MxJT.png

TO FIX:
use e.id instead of aura_env.id inside the e.sortAndOffset function
First time you open /wa - issues happening
if you change it back to aura_env.id instead of e.id after options was already opened once - it never reproduces again, so something happening on the first /wa open

WeakAuras Version

4.1.5

World of Warcraft Flavor

Wrath of the Lich King Classic

Tested with only WeakAuras

  • Yes
  • No

Lua Error

no errors

Reproduction Steps

import both WAs
use /wa = random region anchors to the runes

Last Good Version

When WeakAuras.clones existed

Screenshots

No response

Export String

WAGO is dead so raw strings:

DK RUNES
!WA:2!TQZwSTXv2zAM4nGfBJT2MGnPRtURAxfshkgjABTiP5fPeLfDKjfgsfzhV2K3zMl5mrdNz6Dgkr5a)r1hBDFKwu2293cOwGIc0pAfA)Elmk2VhiuG2V9hTFuG8H)Oa9JI0Z5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