diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index 7de7332..7b8ac0b 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -796,13 +796,6 @@ WeakAuras.load_prototype = { events = {"SPELLS_CHANGED"}, showExactOption = true }, - { - name = "race", - display = L["Player Race"], - type = "multiselect", - values = "race_types", - init = "arg" - }, { name = "faction", display = L["Player Faction"], diff --git a/WeakAuras/Types.lua b/WeakAuras/Types.lua index 01fe762..7b5cc84 100644 --- a/WeakAuras/Types.lua +++ b/WeakAuras/Types.lua @@ -211,35 +211,6 @@ do end end -WeakAuras.race_types = {} ---[[ -do - local unplayableRace = { - [12] = true, - [13] = true, - [14] = true, - [15] = true, - [16] = true, - [17] = true, - [18] = true, - [19] = true, - [20] = true, - [21] = true, - [23] = true, - [33] = true - } - local raceID = 1 - local raceInfo = C_CreatureInfo.GetRaceInfo(raceID) - while raceInfo do - if not unplayableRace[raceID] then - WeakAuras.race_types[raceInfo.clientFileString] = raceInfo.raceName - end - raceID = raceID + 1 - raceInfo = C_CreatureInfo.GetRaceInfo(raceID) - end -end -]] - WeakAuras.faction_group = { Alliance = L["Alliance"], Horde = L["Horde"], diff --git a/WeakAuras/WeakAuras.lua b/WeakAuras/WeakAuras.lua index 303915a..823e31f 100644 --- a/WeakAuras/WeakAuras.lua +++ b/WeakAuras/WeakAuras.lua @@ -5,8 +5,8 @@ local insert = table.insert -- WoW APIs local GetTalentInfo, IsAddOnLoaded, InCombatLockdown = GetTalentInfo, IsAddOnLoaded, InCombatLockdown -local LoadAddOn, UnitName, GetRealmName, UnitRace, UnitFactionGroup, IsInRaid - = LoadAddOn, UnitName, GetRealmName, UnitRace, UnitFactionGroup, IsInRaid +local LoadAddOn, UnitName, GetRealmName, UnitFactionGroup, IsInRaid + = LoadAddOn, UnitName, GetRealmName, UnitFactionGroup, IsInRaid local UnitClass, UnitExists, UnitGUID, UnitAffectingCombat, GetInstanceInfo, IsInInstance = UnitClass, UnitExists, UnitGUID, UnitAffectingCombat, GetInstanceInfo, IsInInstance local UnitIsUnit, GetRaidRosterInfo, UnitInVehicle, UnitHasVehicleUI, GetSpellInfo @@ -2003,7 +2003,6 @@ local function scanForLoadsImpl(toCheck, event, arg1, ...) end local player, realm, zone = UnitName("player"), GetRealmName(), GetRealZoneText(); - local _, race = UnitRace("player") local faction = UnitFactionGroup("player") local _, class = UnitClass("player"); @@ -2027,8 +2026,8 @@ local function scanForLoadsImpl(toCheck, event, arg1, ...) if (data and not data.controlledChildren) then local loadFunc = loadFuncs[id]; local loadOpt = loadFuncsForOptions[id]; - shouldBeLoaded = loadFunc and loadFunc("ScanForLoads_Auras", incombat, vehicle, vehicleUi, group, player, realm, class, race, faction, playerLevel, zone, size, difficulty); - couldBeLoaded = loadOpt and loadOpt("ScanForLoads_Auras", incombat, vehicle, vehicleUi, group, player, realm, class, race, faction, playerLevel, zone, size, difficulty); + shouldBeLoaded = loadFunc and loadFunc("ScanForLoads_Auras", incombat, vehicle, vehicleUi, group, player, realm, class, faction, playerLevel, zone, size, difficulty); + couldBeLoaded = loadOpt and loadOpt("ScanForLoads_Auras", incombat, vehicle, vehicleUi, group, player, realm, class, faction, playerLevel, zone, size, difficulty); if(shouldBeLoaded and not loaded[id]) then changed = changed + 1;