remove scan load for race
This commit is contained in:
@@ -796,13 +796,6 @@ WeakAuras.load_prototype = {
|
|||||||
events = {"SPELLS_CHANGED"},
|
events = {"SPELLS_CHANGED"},
|
||||||
showExactOption = true
|
showExactOption = true
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name = "race",
|
|
||||||
display = L["Player Race"],
|
|
||||||
type = "multiselect",
|
|
||||||
values = "race_types",
|
|
||||||
init = "arg"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name = "faction",
|
name = "faction",
|
||||||
display = L["Player Faction"],
|
display = L["Player Faction"],
|
||||||
|
|||||||
@@ -211,35 +211,6 @@ do
|
|||||||
end
|
end
|
||||||
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 = {
|
WeakAuras.faction_group = {
|
||||||
Alliance = L["Alliance"],
|
Alliance = L["Alliance"],
|
||||||
Horde = L["Horde"],
|
Horde = L["Horde"],
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ local insert = table.insert
|
|||||||
|
|
||||||
-- WoW APIs
|
-- WoW APIs
|
||||||
local GetTalentInfo, IsAddOnLoaded, InCombatLockdown = GetTalentInfo, IsAddOnLoaded, InCombatLockdown
|
local GetTalentInfo, IsAddOnLoaded, InCombatLockdown = GetTalentInfo, IsAddOnLoaded, InCombatLockdown
|
||||||
local LoadAddOn, UnitName, GetRealmName, UnitRace, UnitFactionGroup, IsInRaid
|
local LoadAddOn, UnitName, GetRealmName, UnitFactionGroup, IsInRaid
|
||||||
= LoadAddOn, UnitName, GetRealmName, UnitRace, UnitFactionGroup, IsInRaid
|
= LoadAddOn, UnitName, GetRealmName, UnitFactionGroup, IsInRaid
|
||||||
local UnitClass, UnitExists, UnitGUID, UnitAffectingCombat, GetInstanceInfo, IsInInstance
|
local UnitClass, UnitExists, UnitGUID, UnitAffectingCombat, GetInstanceInfo, IsInInstance
|
||||||
= UnitClass, UnitExists, UnitGUID, UnitAffectingCombat, GetInstanceInfo, IsInInstance
|
= UnitClass, UnitExists, UnitGUID, UnitAffectingCombat, GetInstanceInfo, IsInInstance
|
||||||
local UnitIsUnit, GetRaidRosterInfo, UnitInVehicle, UnitHasVehicleUI, GetSpellInfo
|
local UnitIsUnit, GetRaidRosterInfo, UnitInVehicle, UnitHasVehicleUI, GetSpellInfo
|
||||||
@@ -2003,7 +2003,6 @@ local function scanForLoadsImpl(toCheck, event, arg1, ...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local player, realm, zone = UnitName("player"), GetRealmName(), GetRealZoneText();
|
local player, realm, zone = UnitName("player"), GetRealmName(), GetRealZoneText();
|
||||||
local _, race = UnitRace("player")
|
|
||||||
local faction = UnitFactionGroup("player")
|
local faction = UnitFactionGroup("player")
|
||||||
|
|
||||||
local _, class = UnitClass("player");
|
local _, class = UnitClass("player");
|
||||||
@@ -2027,8 +2026,8 @@ local function scanForLoadsImpl(toCheck, event, arg1, ...)
|
|||||||
if (data and not data.controlledChildren) then
|
if (data and not data.controlledChildren) then
|
||||||
local loadFunc = loadFuncs[id];
|
local loadFunc = loadFuncs[id];
|
||||||
local loadOpt = loadFuncsForOptions[id];
|
local loadOpt = loadFuncsForOptions[id];
|
||||||
shouldBeLoaded = loadFunc and loadFunc("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, race, 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
|
if(shouldBeLoaded and not loaded[id]) then
|
||||||
changed = changed + 1;
|
changed = changed + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user