%unit class color formatting not working until players are in range
BartStam opened this issue ยท 1 comments
Description
Formatting %unit for players in my group should color their name, regardless of their distance to me.
WeakAuras Version
3.7.13
World of Warcraft Flavor
Retail (Default)
Tested with only WeakAuras
- Yes
- No
Lua Error
No response
Reproduction Steps
- Get https://wago.io/kZzKmqMGp (simple dynamic group with smart group/unit characteristics trigger)
- Join some raid boss group while being in another zone -> only your own name is colored
- Go to the world boss location and join a group -> names of players that are near you are colored
Last Good Version
No response
Screenshots
Export String
No response
Forgot to add: manual coloring through custom text (i.e. WA_ClassColorName(aura_env.state.unit)
) does work properly.
Using a custom trigger instead also does not format %unit
properly:
-- On GROUP_ROSTER_UPDATE
function(allstates)
for _, state in pairs(allstates) do
state.show = false
state.changed = true
end
for unit in WA_IterateGroupMembers() do
allstates[unit] = {
show = true,
changed = true,
unit = unit,
GUID = UnitGUID(unit)
}
end
return true
end
It does however format %guid
properly.