Implement player faction cache
This commit is contained in:
@@ -35,13 +35,10 @@ function(allstates, e, ...)
|
||||
if UnitIsPlayer("nameplate" .. i) then
|
||||
local name = UnitName("nameplate" .. i)
|
||||
local faction = UnitFactionGroup("nameplate" .. i)
|
||||
if faction and faction == "Alliance" then
|
||||
aura_env.RegisterAlly(name)
|
||||
end
|
||||
WeakAurasSaved.Cyka.PlayerFactionCache[name] = faction
|
||||
end
|
||||
end
|
||||
|
||||
aura_env.CleanAlliance()
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user