WeakAuras

WeakAuras

206M Downloads

Dynamic Group Custom Anchor doesn't refire on Spec change despite Aura trigger within group track spec specific spells

ljosberinn opened this issue ยท 6 comments

commented

Description

First of all, thank you for this tool!

I'm playing Vengeance DH showing a progress bar for Soul Fragments (the 5 elements). Said progress bar is only loaded on Vengeance since Havoc doesn't use it.

image

A dynamic group ("CDs", just Fel Devastation/Eye Beam atm) is conditionally anchored to it, based on a custom anchor function which checks the spec id via WeakAuras.SpecRolePositionForUnit("player").

Swapping to Havoc now hides the Fragments bar, so I need to reanchor. Docs mention Dynamic Group custom anchor functions refire on trigger changes, but it doesn't. Since the Fragments aura unloaded, its anchoring to nothing and ends up invisible until I /reload - simply opening /wa doesnt fix it, I'd have to go into the custom anchor fn and retrigger its execution:

image

(after reload)
image

Vice versa, after the reload, swapping from Havoc to Vengeance doesnt reanchor so CDs is still anchored to Bars:
image

WeakAuras Version

5.0.5

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

No response

Reproduction Steps

  1. switch specs and observe weirdness

Last Good Version

No response

Screenshots

No response

Export String

!WA:2!DR3E0XXD19RXBeHS2X1s2rXrXKSw2wr2Xw2sYpKDSXzxPvwBIE5zx5xXP7o7mF3DM4zNz8mZQhMMarjnisdVuPTbkqBfukqPf6wsOqleqfcqpTNERkhyp9Ck06d935xp8h0A(FsV3VFN9L0ANqk9C6PZXE1mFFp37N79(5(97iDU29KpsVhQ3J0EH21AxBXD70UQTLVRTPjtBiDdtnxM1JuACfdlFMLILklwmfxVLgXvjFbMLVx)dnS31ZA7QXCJPOEfnxBhNTeZ04AxtXvlskBBtFdNSZQK3oXWlDPIXNw1)SAdSQsrFDB3jD8nST8c7o)K5Y5X8FHnvcNcSIPSX5l7qXNivC5sIrFiBtB3hrssku)fDnD2HUVVJ3jo4bPHUxd7dwDSpyFd4QOYh4Jk75R46hoBodldp9WXW)4hEbFxJ85zUED2TBWTp3YASSfZLl18om3rJp2uJm9yX8XhKvk6Q0)cEom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(4PHf4yfHJoSQ1DIGVPogem9hcuDI)31jbgC6Cb5DfK0vLdDR62(GemNH(Ku9dtNvhMD23JFUDVIoLAwJNix92Hcn85q8bzvrwPIJMBnhlhAntNi33kd)yGEy6q5uupZvNzaJ5oAX40HYv3H7LyFO1pQeU793szPX7As5S8uD82hweMS24lBxnsgsRouqPo3LHLh9zKQs7YHmt8vy6rTOS0z5mWXS8KHNpyWP(uw65XILQu)rx2R6(0gBk0UuM)SZj)fWtEsQhEx2ZIXUgRx785xvmMelclMz2XrVFmxCHuw69rNR5gd)lvyERpzamNG3emNG7cyow1)NhM)Pw)HqhUS07MV)cFpXznhIQer2K9W229VmG2pZAH2Sblw4rU2zNmAS5Vzq7AOV34OZYsVqzP3lIBkl9(ll9bkl9bRhg1(m32t(Fb

commented

That's supposed to work like it does work, your custom anchor function is not rechecked on spec changes nor any other occasion. The custom anchor functions for groups only run once.

commented

Is there a way to force retrigger it procedurally? Having users to /reload is a bit scuffed. edit: rubber ducked myself

commented

You can workaround this just by having a duplicate of the group or aura you want it anchored to that loads only in same spec and remove the custom anchoring

commented

No there's no way to rerun that anchoring, it's done exactly once.

commented

As you can see mixing auras in same dynamic group not meant for same spec and wanting them to have a different layout based on spec is overly complicated (for not saying impossible)
While having 1 group per spec, with some duplicate, doesn't require any code

commented

well I can tell you you wont like it but I got it working:

function(event)
    if event ~= "PLAYER_SPECIALIZATION_CHANGED" then
        return false
    end
    
    local region = WeakAuras.GetRegion("XephUI-CDsAndDefensives")
    region.SetAnchor(region, "CENTER", region.customAnchorFunc(), "BOTTOM")        
    
    return false
end

as a trigger for a standalone aura that listens to PLAYER_SPECIALIZATION_CHANGED:player