-- TODO: unify this into a single event somehow |
function AloftRaceData:UpdateRaceFromBattlefield(event) |
for i = 1, GetNumBattlefieldScores() do |
local name, _, _, _, _, _, _, race, _, _, _, _ = GetBattlefieldScore(i) |
local name, killingBlows, honorableKills, deaths, honorGained, faction, race, class, classToken, damageDone, healingDone, bgRating, ratingChange = GetBattlefieldScore(i) |
if name and race then -- it seems that name can, on rare occasions, be nil; perhaps a race condition with zoning in/out? |
name = ("-"):split(name, 2) |
if name ~= L["Unknown"] then |