Dynamic Group: custom anchor does not update on trigger update
sense-amid-madness opened this issue ยท 3 comments
Description
I have a dynamic group with a simple custom anchor for testing,
function() return C_NamePlate.GetNamePlateForUnit("target") end
I have also two triggers, one for "player is casting" and one for "target is attackable", and show an icon at the target whenever one of these is true.
According to documentation on Wiki, "the custom anchor function is updated on trigger update and should return a frame".
The anchor works in principle. When I click the "set parent to anchor" checkbox in the position settings, WA automatically makes an update of the anchor and it changes to my current target. However, when I select a new target and cast a spell, the anchor is not updated to the new target, the icon stays at whatever target was selected when I clicked the checkbox.
Did I do anything wrong or misunderstood the documentation, or is this a bug? How can I trigger an automatic update in the aura? Thanks.
WeakAuras Version
5.3.7
World of Warcraft Flavor
Retail (Default)
Tested with only WeakAuras
- Yes
- No
Lua Error
No error.
Reproduction Steps
- Create dynamic group
- Set custom anchor as above
- Add triggers as above
- Add something to display
- No updates to anchor position ever occur except when checkbox "set parent to anchor" is clicked
Last Good Version
No idea
Screenshots
No response
Export String
!WA:2!fwv3UnXru4UyOKUqPednecTf3qlfuvtb3cvi1lQxhBsqojURDsOsrkE2DM17aRNDyMzZpOEdriex7hGEHLAVQx5hH8emYQpb5ripb9m7UjoKIu9f7UZ4ZpFNZ5B(gR1kkDFWC)WC)uXEfXfXV9(9rc)gewxv4RN6aVybMiCq(phlI58l7erF5lrcCP2XXrkkFekrfglwHROXmPTy3vccKeL1qeZh2VzmLP8QwB521ChMfRQXrXINyzzvWvYr(KZjq(Po)qxPcju2ougvz7faVKH27Pe0UDjc5m3wK)5BgGjEjbbT3LteluRrZ6R2WrblCrjcu59KCsu0IyP9bYepYweMQfynDNHBwTsR2B2QDf32ojqs84rODjIJnRPGaM52QzTgnCt3XBbcksf6Yq9is7(jSCiyp0pokPhRLPck4jqyAI81xSpIr7HmvZd1xSU(koSygzFcssAPePT0Zpcdy0yXMgelKe)ygwUNXgt9OVLtpeLb(QVL(RoV(R13w)nWNx6074IIODz6jeqtZGiRbqv4s6MogCJO9OQl4efJW1DK0xsMYTxcmV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Ms9V)a(uVxwR0s)R26L9Av1TwTLFpNJmgLDO4OimM1LhbqjZzrqk5Gqk(ekcD0lvWDBJRNDc95S1Ud35XEpATk4fE0YnfuMrlKe2hQDg2GrxNg1wE(ddojpk7QNc61T1p1wpB2DPV79H35))gYIB9pp9F)d
The wiki is talking about the custom anchor function of an aura. A dynamic group does not have triggers, so what you quote does not apply to the dynamic group's custom anchoring function.
What you instead want to do is to use a custom grow function, since those are rerun whenever a state changes, e.g. like this aura:
!WA:2!fA1BVTrrAC2A4k3Y9Ne3qAjqv3gjYvO56vfvkhiXHSDStdNtIV1ouoAofp7oJ9oK1Zm3mZgN0t8MiavXl9haEHLGxXR8hH(jyKfFcYhH8jGNzwh70CvIOKD3z3N))8753t8(8IQ1wNCyXEfXfXp7dl3vY7hvz3MT2zRtJ4smrwgfFawYfI5kNsF6trsCqlopvtfJrz6eUChHMYzkF5X70PJIO9otXL6hDCKKIBHIsjlgTzmNfSwI4AXzknVxjwmOxdICxgvFLHDYstRqLXPK2I5YuKx4ZjsuSZ(pmuPrsTFzk8w)OoWnvI)jAjTBxIuT0kYjp(DdXKOSoDADSGiFu16nQTB9YA4qiktIw7eLGKMUjw5FQklICiHPBcstpA0(vk1S1(nBvkSv5mWjrIu0Xezid1JO8dDIg9ickvNmv1gscOAyZgvRxFqgBsi4pkMNM1J1uGIjfIKimnt9n)HqL98Rnqrs70GtbRvP62TQggIsPDzMvISv)DyY4eeRlbpaXO9q2K)HM)unZBwMXzKNtqkstTKW6QtU6ymKswj23MGsfbk0y1jwzSPV5UL7HOmqxZDnREvZF1CpZFdECUl)gjuBTbU3qiXcjDDn0r5aGk8uU8Z888kmcL3zSHUzLYPCeUwzf9PKfd7Lbic)YqTnErZh6hgNIuk7trAukuNSpoXEBYaqsHXrtWv5MVqHcnkC)79bLTyhZDJu8mzmjI2taNhMdB2aQoh59x6KXCiI7Wi9BWvuh6y1alm5qYKy)98dGFs5XO0aa10LO3UrWNeuz)THEzJuKMCVnG3D(HAChw7ol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