--[[
    Interrupt & Premade CDs Tracker
    Copyright (c) 2026 Skorms & Ankito. All Rights Reserved.
]]

local _, addonTable = ...

addonTable.spellDB = {
-- DEATHKNIGHT
[47528]  = { cat = "Cortes", cd = 15, clase = "DEATHKNIGHT", spec = 0 }, 
[48792]  = { cat = "Defensivos", cd = 120, clase = "DEATHKNIGHT", spec = 0 }, 
[48707]  = { cat = "Defensivos", cd = 40,  clase = "DEATHKNIGHT", spec = 0 }, 
[51052]  = { cat = "Defensivos", cd = 120, clase = "DEATHKNIGHT", spec = 0 }, 
[49028]  = { cat = "Ofensivos", cd = 45,  clase = "DEATHKNIGHT", spec = 250 }, 
[55233]  = { cat = "Defensivos", cd = 90,  clase = "DEATHKNIGHT", spec = 250 }, 
[51271]  = { cat = "Ofensivos", cd = 60,  clase = "DEATHKNIGHT", spec = 251 }, 
[279302] = { cat = "Ofensivos", cd = 180, clase = "DEATHKNIGHT", spec = 251 }, 
[42650]  = { cat = "Ofensivos", cd = 180, clase = "DEATHKNIGHT", spec = 252 }, 
[63560]  = { cat = "Ofensivos", cd = 45,  clase = "DEATHKNIGHT", spec = 252 }, 
[383269] = { cat = "CCs", cd = 120, clase = "DEATHKNIGHT", spec = 0 }, 
[221562] = { cat = "CCs", cd = 45, clase = "DEATHKNIGHT", spec = 0 }, 
[207167] = { cat = "CCs", cd = 60, clase = "DEATHKNIGHT", spec = 251 }, 
[49576]  = { cat = "CCs", cd = 25, clase = "DEATHKNIGHT", spec = 0 }, 

    -- DEMON HUNTER
    [183752] = { cat = "Cortes", cd = 15, clase = "DEMONHUNTER", spec = 0 },
    [198589] = { cat = "Defensivos", cd = 60, clase = "DEMONHUNTER", spec = 577 },
    [196718] = { cat = "Defensivos", cd = 180, clase = "DEMONHUNTER", spec = 0 },
    [212800] = { cat = "Defensivos", cd = 180, clase = "DEMONHUNTER", spec = 577 },
    [191427] = { cat = "Ofensivos", cd = 120, clase = "DEMONHUNTER", spec = 577 },
    [187827] = { cat = "Defensivos", cd = 120, clase = "DEMONHUNTER", spec = 581 },
    [204021] = { cat = "Defensivos", cd = 60, clase = "DEMONHUNTER", spec = 581 },
    [212084] = { cat = "Ofensivos", cd = 60, clase = "DEMONHUNTER", spec = 581 },
    [179057] = { cat = "CCs", cd = 60, clase = "DEMONHUNTER", spec = 0 },
    [218352] = { cat = "CCs", cd = 45, clase = "DEMONHUNTER", spec = 0 },

-- DRUID
[106839] = { cat = "Cortes", cd = 15, clase = "DRUID", spec = 0 }, -- Testarazo (Talento de clase general)
[78675]  = { cat = "Cortes", cd = 60, clase = "DRUID", spec = 102 }, -- Rayo solar (Pollo solamente)
[22812]  = { cat = "Defensivos", cd = 60, clase = "DRUID", spec = 0 },
[61336]  = { cat = "Defensivos", cd = 180, clase = "DRUID", spec = 104 }, -- Instintos de supervivencia (Solo Oso)
[102342] = { cat = "Defensivos", cd = 90, clase = "DRUID", spec = 105 },
[102558] = { cat = "Ofensivos", cd = 180, clase = "DRUID", spec = 104 }, -- Encarnación: Ursoc (Solo Oso)
[102560] = { cat = "Ofensivos", cd = 180, clase = "DRUID", spec = 102 }, -- Encarnación: Elune (Solo Pollo)
[323764] = { cat = "Ofensivos", cd = 60,  clase = "DRUID", spec = 0 },
[5211]   = { cat = "CCs", cd = 60, clase = "DRUID", spec = 0 },
[132469] = { cat = "CCs", cd = 30, clase = "DRUID", spec = 0 },
[102793] = { cat = "CCs", cd = 60, clase = "DRUID", spec = 0 },
[99]     = { cat = "CCs", cd = 30, clase = "DRUID", spec = 0 },

 -- EVOKER
 [351338] = { cat = "Cortes", cd = 40, clase = "EVOKER", spec = {1467, 1473} }, 
 [363916] = { cat = "Defensivos", cd = 90, clase = "EVOKER", spec = 0 },
 [374227] = { cat = "Defensivos", cd = 120, clase = "EVOKER", spec = 0 }, 
 [363534] = { cat = "Defensivos", cd = 180, clase = "EVOKER", spec = 1468 },
 [370537] = { cat = "Defensivos", cd = 90, clase = "EVOKER", spec = 1468 },
 [357170] = { cat = "Defensivos", cd = 60, clase = "EVOKER", spec = 1468 },
 [375087] = { cat = "Ofensivos", cd = 120, clase = "EVOKER", spec = 1467 },
 [403631] = { cat = "Ofensivos", cd = 120, clase = "EVOKER", spec = 1473 },
 [358385] = { cat = "CCs", cd = 90, clase = "EVOKER", spec = 0 },
 [357210] = { cat = "CCs", cd = 120, clase = "EVOKER", spec = 0 },
 [361500] = { cat = "CCs", cd = 45, clase = "EVOKER", spec = 0 },
 [357214] = { cat = "CCs", cd = 45, clase = "EVOKER", spec = 0 },
 [372048] = { cat = "CCs", cd = 120, clase = "EVOKER", spec = 0 },
   
    -- HUNTER
    [147362] = { cat = "Cortes", cd = 24, clase = "HUNTER", spec = 0 },
    [186265] = { cat = "Defensivos", cd = 180, clase = "HUNTER", spec = 0 },
    [264735] = { cat = "Defensivos", cd = 180, clase = "HUNTER", spec = 0 },
    [109304] = { cat = "Defensivos", cd = 120, clase = "HUNTER", spec = 0 },
    [288613] = { cat = "Ofensivos", cd = 120, clase = "HUNTER", spec = 254 },
    [19577]  = { cat = "CCs", cd = 60, clase = "HUNTER", spec = 0 },
    [3355]   = { cat = "CCs", cd = 30, clase = "HUNTER", spec = 0 },
    [109248] = { cat = "CCs", cd = 45, clase = "HUNTER", spec = 0 },

    -- MAGE
    [2139]   = { cat = "Cortes", cd = 20, clase = "MAGE", spec = 0 }, 
    [414658] = { cat = "Defensivos", cd = 180, clase = "MAGE", spec = 0 }, 
    [45438]  = { cat = "Defensivos", cd = 240, clase = "MAGE", spec = 0 }, 
    [342245] = { cat = "Defensivos", cd = 50, clase = "MAGE", spec = 0 }, 
    [235450] = { cat = "Defensivos", cd = 24, clase = "MAGE", spec = 62 }, 
    [235313] = { cat = "Defensivos", cd = 24, clase = "MAGE", spec = 63 }, 
    [11426]  = { cat = "Defensivos", cd = 24, clase = "MAGE", spec = 64 }, 
    [365350] = { cat = "Ofensivos", cd = 120, clase = "MAGE", spec = 62 }, 
    [190319] = { cat = "Ofensivos", cd = 60, clase = "MAGE", spec = 63 }, 
    [205021] = { cat = "Ofensivos", cd = 60, clase = "MAGE", spec = 64 }, 
    [31661]  = { cat = "CCs", cd = 40, clase = "MAGE", spec = 63 }, 
    [113724] = { cat = "CCs", cd = 45, clase = "MAGE", spec = {62, 64} }, 
    [157980] = { cat = "CCs", cd = 40, clase = "MAGE", spec = 62 }, 

    -- MONK
    [116705] = { cat = "Cortes", cd = 15, clase = "MONK", spec = {268, 269} }, 
    [115203] = { cat = "Defensivos", cd = 240, clase = "MONK", spec = 0 },
    [122470] = { cat = "Defensivos", cd = 90, clase = "MONK", spec = 269 },
    [119582] = { cat = "Defensivos", cd = 15, clase = "MONK", spec = 268 },
    [322507] = { cat = "Defensivos", cd = 45, clase = "MONK", spec = 268 },
    [1241059] = { cat = "Defensivos", cd = 45, clase = "MONK", spec = 268 },
    [137639] = { cat = "Ofensivos", cd = 90, clase = "MONK", spec = 269 },
    [119381] = { cat = "CCs", cd = 45, clase = "MONK", spec = 0 },
    [116844] = { cat = "CCs", cd = 45, clase = "MONK", spec = 0 },

    -- PALADIN
    [96231]  = { cat = "Cortes", cd = 15, clase = "PALADIN", spec = {66, 70} }, 
    [642]    = { cat = "Defensivos", cd = 300, clase = "PALADIN", spec = 0 },
    [1022]   = { cat = "Defensivos", cd = 300, clase = "PALADIN", spec = 0 },
    [6940]   = { cat = "Defensivos", cd = 120, clase = "PALADIN", spec = 0 },
    [31821]  = { cat = "Defensivos", cd = 180, clase = "PALADIN", spec = 65 },
    [31884]  = { cat = "Ofensivos", cd = 120, clase = "PALADIN", spec = 0 },
    [853]    = { cat = "CCs", cd = 60, clase = "PALADIN", spec = 0 },
    [115750] = { cat = "CCs", cd = 90, clase = "PALADIN", spec = 0 },

    -- PRIEST
    [15487]  = { cat = "Cortes", cd = 45, clase = "PRIEST", spec = 258 },
    [33206]  = { cat = "Defensivos", cd = 180, clase = "PRIEST", spec = 256 },
    [62618]  = { cat = "Defensivos", cd = 180, clase = "PRIEST", spec = 256 },
    [47788]  = { cat = "Defensivos", cd = 180, clase = "PRIEST", spec = 257 },
    [10060]  = { cat = "Ofensivos", cd = 120, clase = "PRIEST", spec = 0 },
    [8122]   = { cat = "CCs", cd = 30, clase = "PRIEST", spec = 0 },
    [64044]  = { cat = "CCs", cd = 45, clase = "PRIEST", spec = 258 },

    -- ROGUE
    [1766]   = { cat = "Cortes", cd = 15, clase = "ROGUE", spec = 0 },
    [31224]  = { cat = "Defensivos", cd = 120, clase = "ROGUE", spec = 0 },
    [5277]   = { cat = "Defensivos", cd = 120, clase = "ROGUE", spec = 0 },
    [1856]   = { cat = "Defensivos", cd = 120, clase = "ROGUE", spec = 0 },
    [121471] = { cat = "Ofensivos", cd = 120, clase = "ROGUE", spec = 261 },
    [2094]   = { cat = "CCs", cd = 120, clase = "ROGUE", spec = 0 },
    [408]    = { cat = "CCs", cd = 20, clase = "ROGUE", spec = 0 },

    -- SHAMAN
    [57994]  = { cat = "Cortes", cd = { [262] = 12, [263] = 12, [264] = 30, default = 12 }, clase = "SHAMAN", spec = {262, 263, 264} },
    [108271] = { cat = "Defensivos", cd = 90, clase = "SHAMAN", spec = 0 },
    [98008]  = { cat = "Defensivos", cd = 180, clase = "SHAMAN", spec = 264 },
    [198838] = { cat = "Defensivos", cd = 60, clase = "SHAMAN", spec = 264 },
    [114050] = { cat = "Ofensivos", cd = 120, clase = "SHAMAN", spec = 262 },
    [192058] = { cat = "CCs", cd = 60, clase = "SHAMAN", spec = 0 },
    [51514]  = { cat = "CCs", cd = 30, clase = "SHAMAN", spec = 0 },

    -- WARLOCK
    [19647]  = { cat = "Cortes", cd = 24, clase = "WARLOCK", spec = 0 }, 
    [89766]  = { cat = "Cortes", cd = 30, clase = "WARLOCK", spec = 266 }, -- Lanzamiento de Hacha (Solo Demonología)
    [108416] = { cat = "Defensivos", cd = 45, clase = "WARLOCK", spec = 0 },
    [104773] = { cat = "Defensivos", cd = 180, clase = "WARLOCK", spec = 0 },
    [265187] = { cat = "Ofensivos", cd = 60,  clase = "WARLOCK", spec = 266 },
    [1122]   = { cat = "Ofensivos", cd = 120, clase = "WARLOCK", spec = 267 },
    [18540]  = { cat = "Ofensivos", cd = 120, clase = "WARLOCK", spec = 0 },
    [30283]  = { cat = "CCs", cd = 60, clase = "WARLOCK", spec = 0 },
    [6789]   = { cat = "CCs", cd = 45, clase = "WARLOCK", spec = 0 },
    [5484]   = { cat = "CCs", cd = 40, clase = "WARLOCK", spec = 0 },
    [205179] = { cat = "CCs", cd = 120, clase = "WARLOCK", spec = 0 },
    
    -- WARRIOR
    [6552]   = { cat = "Cortes", cd = 15, clase = "WARRIOR", spec = 0 },
    [871]    = { cat = "Defensivos", cd = 180, clase = "WARRIOR", spec = 73 },
    [118038] = { cat = "Defensivos", cd = 180, clase = "WARRIOR", spec = 71 },
    [184364] = { cat = "Defensivos", cd = 120, clase = "WARRIOR", spec = 72 },
    [23920]  = { cat = "Defensivos", cd = 25, clase = "WARRIOR", spec = 0 },
    [107574] = { cat = "Ofensivos", cd = 90, clase = "WARRIOR", spec = 0 },
    [1719]   = { cat = "Ofensivos", cd = 90, clase = "WARRIOR", spec = 72 },
    [107570] = { cat = "CCs", cd = 30, clase = "WARRIOR", spec = 0 },
    [5246]   = { cat = "CCs", cd = 90, clase = "WARRIOR", spec = 0 },
    [46968]  = { cat = "CCs", cd = 40, clase = "WARRIOR", spec = 0 }
}

addonTable.cortesBasePorClase = {
    ["DEATHKNIGHT"] = 47528, ["DEMONHUNTER"] = 183752, ["DRUID"] = 106839,
    ["EVOKER"] = 351338, ["HUNTER"] = 147362, ["MAGE"] = 2139,
    ["MONK"] = 116705, ["PALADIN"] = 96231, ["PRIEST"] = 15487,
    ["ROGUE"] = 1766, ["SHAMAN"] = 57994, ["WARLOCK"] = 19647, ["WARRIOR"] = 6552
}

addonTable.mapaClases = {
    ["DEATHKNIGHT"] = "DK", ["DEMONHUNTER"] = "DH", ["DRUID"] = "Druida",
    ["EVOKER"] = "Evocador", ["HUNTER"] = "Cazador", ["MAGE"] = "Mago",
    ["MONK"] = "Monje", ["PALADIN"] = "Paladín", ["PRIEST"] = "Sacerdote",
    ["ROGUE"] = "Pícaro", ["SHAMAN"] = "Chamán", ["WARLOCK"] = "Brujo",
    ["WARRIOR"] = "Guerrero"
}

addonTable.spellAliases = {
    [132409] = 19647, 
    [119898] = 19647, 
    [119910] = 19647, -- Comandar demonio (Bloqueo de hechizo)
    [171138] = 19647, -- Clon de Bloqueo de hechizo
    [171140] = 19647, -- Clon de Bloqueo de hechizo
    [212619] = 19647, -- Llamar a manáfago (Talento PvP)
    [119914] = 89766, -- Comandar demonio (Lanzamiento de hacha)
    [455395] = 63560, 
    [106951] = 102558, -- Si entra en CD la Rabia (Berserk), aplícalo a Encarnación de Oso
    [194223] = 102560, -- Si entra en CD Alineación Celestial, aplícalo a Encarnación de Pollo
}