WeakAuras

WeakAuras

206M Downloads

%unit class color formatting not working until players are in range

BartStam opened this issue ยท 1 comments

commented

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

  1. Get https://wago.io/kZzKmqMGp (simple dynamic group with smart group/unit characteristics trigger)
  2. Join some raid boss group while being in another zone -> only your own name is colored
  3. 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

image

Export String

No response

commented

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.