local E = select(2, ...):unpack() E.spell_highlighted = {} E.spell_modifiers = {} E.spell_marked = { [48707] = 205727, [287250] = true, [198589] = 205411, [217832] = 205596, [187650] = 203340, [116849] = 388218, [122470] = 280195, [853] = 234299, [228049] = true, [199448] = true, [62618] = 197590, [8122] = 196704, [88625] = 200199, [1966] = 79008, [2094] = 200733, [79206] = 290254, [23920] = 213915, [360806] = 410962, [34433] = 314867, [123040] = 314867, } function E:ProcessSpellDB() for k, v in pairs(self.spell_db) do local n = #v for i = n, 1, -1 do local t = v[i] local id, itemID, stype = t.spellID, t.item, t.type if C_Spell.DoesSpellExist(id) then t.class = t.class or k local name = GetSpellInfo(id) or "" if self.spellNameToID then self.spellNameToID[name] = id end t.name = name if k == "TRINKET" or k == "PVPTRINKET" then if itemID == 37864 and self.userFaction == "Horde" then itemID = 37865 end t.icon = t.icon or GetItemIcon(itemID) else if id == 2825 and self.userFaction ~= "Horde" then t.icon = 132313 end t.icon = t.icon or select(2, GetSpellTexture(self.iconFix[id] or id)) end t.buff = t.buff or self.buffFix[id] or id if self.L_HIGHLIGHTS[stype] then self.spell_highlighted[t.buff] = true end if self.spell_requiredLevel then self.spell_requiredLevel[id] = t.rlvl end else tremove(v, i) end end end for k, v in pairs(self.spell_merged) do self.spell_highlighted[k] = self.spell_highlighted[v] end for k in self.pairs(self.spell_linked, self.spell_merged, self.spellcast_shared_cdstart, self.spellcast_cdreset, self.spellcast_cdr, self.spellcast_cdr_powerspender, self.covenant_abilities, self.spellcast_cdr_azerite) do self.spell_modifiers[k] = true end end if E.preMoP then E.spell_cxmod_azerite = E.BLANK E.spellcast_cdr_azerite = E.BLANK E.spell_damage_cdr_azerite = E.BLANK E.spell_cdmod_essrank23 = E.BLANK E.spell_chargemod_essrank3 = E.BLANK E.essMajorConflict = E.BLANK E.pvpTalentsByEssMajorConflict = E.BLANK E.essMinorStrive = E.BLANK E.spell_cdmod_ess_strive_mult = E.BLANK end