Skip to content

Commit

Permalink
other: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Jan 26, 2023
1 parent b91355d commit 685cfc9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
47 changes: 0 additions & 47 deletions src/modules/nameplate/nameplate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -758,56 +758,9 @@ function NAMEPLATE:PostUpdatePlates(event, unit)
NAMEPLATE.UpdateTotemIcon(self, event, unit)
end

-- local function CheckNameplateAuraFilter(index)
-- local value = (index == 1 and C.NameplateAuraWhiteList) or (index == 2 and C.NameplateAuraBlackList)
-- if value then
-- for spellID in pairs(value) do
-- local name = GetSpellInfo(spellID)
-- if name then
-- if _G.ANDROMEDA_ADB['NameplateAuraFilterList'][index][spellID] then
-- _G.ANDROMEDA_ADB['NameplateAuraFilterList'][index][spellID] = nil
-- end
-- else
-- if C.IS_DEVELOPER then
-- F:Print('Invalid nameplate filter ID: ' .. spellID)
-- end
-- end
-- end

-- for spellID, val in pairs(_G.ANDROMEDA_ADB['NameplateAuraFilterList'][index]) do
-- if val == false and value[spellID] == nil then
-- _G.ANDROMEDA_ADB['NameplateAuraFilterList'][index][spellID] = nil
-- end
-- end
-- end
-- end

-- function NAMEPLATE:CheckNameplateAuraFilters()
-- CheckNameplateAuraFilter(1)
-- CheckNameplateAuraFilter(2)
-- end

local function RefreshNameplateAuraFilter(list, key)
wipe(NAMEPLATE[key])

-- local VALUE = (index == 1 and C.NameplateAuraWhiteList) or (index == 2 and C.NameplateAuraBlackList)
-- if VALUE then
-- for spellID in pairs(VALUE) do
-- local name = GetSpellInfo(spellID)
-- if name then
-- if _G.ANDROMEDA_ADB['NameplateAuraFilterList'][index][spellID] == nil then
-- NAMEPLATE.AuraFilterList[index][spellID] = true
-- end
-- end
-- end
-- end

-- for spellID, value in pairs(_G.ANDROMEDA_ADB['NameplateAuraFilterList'][index]) do
-- if value then
-- NAMEPLATE.AuraFilterList[index][spellID] = true
-- end
-- end

for spellID in pairs(list) do
local name = GetSpellInfo(spellID)
if name then
Expand Down
13 changes: 0 additions & 13 deletions src/modules/unitframe/filters/group.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ C.RaidBuffsWhiteList = {
[363916] = true, -- 黑曜鳞片
}

-- Corner spells
-- [spellID] = {anchor, {r, g, b}, ALL}
C.CornerSpellsList = {
['PRIEST'] = {
[194384] = { 'TOPRIGHT', { 1, 1, 0.66 } }, -- 救赎
Expand Down Expand Up @@ -125,16 +123,6 @@ C.CornerSpellsList = {
['DEATHKNIGHT'] = {},
}

C.BloodlustDebuffsList = {
57723, -- 筋疲力尽
57724, -- 心满意足
80354, -- 时空错位
264689, -- 疲倦
390435, -- 筋疲力尽,龙希尔
}

-- Party watcher spells
-- [spellID] = duration in seconds
C.PartySpellsList = {
[57994] = 12, -- 风剪
[1766] = 15, -- 脚踢
Expand Down Expand Up @@ -198,7 +186,6 @@ C.PartySpellsList = {
[196555] = 180, -- 虚空行走
}

-- Talent modification
C.TalentCDFixList = {
[740] = 120, -- 宁静
[2094] = 90, -- 致盲
Expand Down

0 comments on commit 685cfc9

Please sign in to comment.