More betterer race detection hopefully
This commit is contained in:
@@ -35,6 +35,13 @@ function(allstates, e, ...)
|
|||||||
if UnitIsPlayer("nameplate" .. i) then
|
if UnitIsPlayer("nameplate" .. i) then
|
||||||
local name = UnitName("nameplate" .. i)
|
local name = UnitName("nameplate" .. i)
|
||||||
local faction = UnitFactionGroup("nameplate" .. i)
|
local faction = UnitFactionGroup("nameplate" .. i)
|
||||||
|
local _, race = UnitRace("nameplate" .. i)
|
||||||
|
local raceFaction = aura_env.raceFactions[race]
|
||||||
|
if not raceFaction then
|
||||||
|
print("Unknown race faction", race)
|
||||||
|
else
|
||||||
|
faction = raceFaction
|
||||||
|
end
|
||||||
WeakAurasSaved.Cyka.PlayerFactionCache[name] = faction
|
WeakAurasSaved.Cyka.PlayerFactionCache[name] = faction
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -36,6 +36,22 @@ WeakAurasSaved.Cyka.Stinkies = {
|
|||||||
["Zawaz"] = nil,
|
["Zawaz"] = nil,
|
||||||
["Totleta"] = nil,
|
["Totleta"] = nil,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aura_env.raceFactions = {
|
||||||
|
["Orc"] = "Horde",
|
||||||
|
["Undead"] = "Horde",
|
||||||
|
["Tauren"] = "Horde",
|
||||||
|
["Troll"] = "Horde",
|
||||||
|
["BloodElf"] = "Horde",
|
||||||
|
["Goblin"] = "Horde",
|
||||||
|
["Human"] = "Alliance",
|
||||||
|
["Dwarf"] = "Alliance",
|
||||||
|
["NightElf"] = "Alliance",
|
||||||
|
["Gnome"] = "Alliance",
|
||||||
|
["Draenei"] = "Alliance",
|
||||||
|
["Worgen"] = "Alliance",
|
||||||
|
}
|
||||||
|
|
||||||
local toNotify = { "Succpotato", "Extazyk", "Smokefire", "Smokemantra", "Хихихантер", "Муркот", "Растафаркрай" }
|
local toNotify = { "Succpotato", "Extazyk", "Smokefire", "Smokemantra", "Хихихантер", "Муркот", "Растафаркрай" }
|
||||||
-- local toNotify = { "Succpotato" }
|
-- local toNotify = { "Succpotato" }
|
||||||
aura_env.whisperQueue = {}
|
aura_env.whisperQueue = {}
|
||||||
|
Reference in New Issue
Block a user