Compare with Previous | Blame | View Log
local addon = LibStub:NewLibrary("NaturCombat", 20080716); ---------------------------------------------------------------------------------------------------- addon.spelldata = {}; -- Lookup table for data, stored by spellid addon.spellkeys = {}; -- Lookup table for spell names that default to a spellid addon.spellmeta = {}; -- Metatable addon.spellmeta.__newindex = function(tbl, key, value) local name = GetSpellInfo(key); if (not addon.spelldata[key]) then addon.spelldata[key] = value; end if (not addon.spellkeys[name]) then addon.spellkeys[name] = key; end end; addon.spellmeta.__index = function(tbl, key) local name, rank, icon, _, _, _, castTime = GetSpellInfo(key); if (not addon.spelldata[key]) then key = addon.spellkeys[name]; end local data = addon.spelldata[key] or {}; data.id, data.name, data.rank, data.icon, data.castTime = key, name, rank, icon, castTime / 1000; return data; end; local spells = setmetatable({}, addon.spellmeta); function addon:GetSpellData(id) if (id) then return spells[id]; end end ---------------------------------------------------------------------------------------------------- -- SPELL DATABASE -- INFORMATION -- duration cooldown dot stun combo pvpdur talent -- EXAMPLE: spells[SPELLID] = { duration = TIME, cooldown = TIME}; ---------------------------------------------------------------------------------------------------- -- RACIAL ABILITES spells[20600] = {duration = 20, cooldown = 180}; -- Perception spells[7744] = {duration = 5, cooldown = 120}; -- WotF spells[20594] = {duration = 8, cooldown = 180}; -- Stoneform spells[26297] = {duration = 10, cooldown = 180}; -- Berserking spells[28880] = {duration = 15, cooldown = 180}; -- GotN spells[20549] = {duration = 2, cooldown = 120}; -- War Stomp spells[25467] = {duration = 24, dot = true}; -- Dev. Plague spells[25446] = {duration = 15, dot = true}; -- Starshards spells[44047] = {duration = 2, cooldown = 30}; -- Chastise spells[20589] = {cooldown = 105}; -- Escape Artist spells[19275] = {duration = 15, cooldown = 180}; -- Feedback -- MISC & TRINKETS spells[5530] = {duration = 3, stun = true}; -- Mace Stun spells[44055] = {duration = 15, cooldown = 180}; -- Battlemaster's Trinkets spells[35166] = {duration = 20, cooldown = 120}; -- Bloodlust Brooch spells[43716] = {duration = 20, cooldown = 120}; -- Berserker's Call spells[40402] = {duration = 20, cooldown = 120}; -- Earring of Soulful Meditation spells[46784] = {duration = 15, cooldown = 90}; -- Shadowsong Panther spells[40396] = {duration = 20, cooldown = 120}; -- Skull of Guldan spells[35163] = {duration = 20, cooldown = 120}; -- Icon of the silver crescent spells[30458] = {duration = 8, cooldown = 300}; -- Nigh Invuln. Belt spells[35476] = {duration = 30, cooldown = 120, special = true}; -- Drums of Battle spells[35474] = {duration = 2, cooldown = 120}; -- Drums of Panic spells[35475] = {duration = 30, cooldown = 120, special = true}; -- Drums of War -- DRUIDS spells[33831] = {cooldown = 180}; -- FoN spells[26980] = {duration = 21}; -- Regrowth spells[33357] = {duration = 15, cooldown = 300}; -- Dash spells[22812] = {duration = 12, cooldown = 60}; -- BarkS spells[29166] = {duration = 20, cooldown = 360}; -- Innerv. spells[26999] = {duration = 10, cooldown = 180}; -- Frenz. Reg. spells[25299] = {duration = 12}; -- Rejuv spells[2893] = {duration = 7}; -- Abolish Poi. spells[27009] = {duration = 45, cooldown = 60}; -- NG spells[33763] = {duration = 7, stacks = true}; -- Lifebloom spells[17116] = {cooldown = 180}; -- NS spells[33786] = {duration = 6, diminish="cyclone"}; -- Cyclone spells[26989] = {duration = 15, pvpdur = 10, diminish="root"}; -- Ent. Root spells[27013] = {duration = 12, dot = true}; -- Ins. Swarm spells[18658] = {duration = 40, pvpdur = 10, diminish="sleep"}; -- Hiber. spells[26993] = {duration = 40}; -- FF spells[17392] = {duration = 40}; -- FF (F) spells[9898] = {duration = 30}; -- Demo. Roar spells[33986] = {duration = 12}; -- Mangle spells[33982] = {duration = 12}; -- Mangle spells[16979] = {duration = 4, cooldown = 15}; -- Feral Charge spells[33745] = {duration = 15, stacks = true, dot = true}; -- Lacerate spells[26988] = {duration = 12, dot = true}; -- MF spells[27008] = {duration = 12, dot = true}; -- Rip spells[1823] = {duration = 9, dot = true}; -- Rake spells[27006] = {duration = 4, stun = true, combo = true, talent = {2, 4, 4, 0.5, "DRUID"}, diminish="stun"}; -- Pounce spells[27007] = {duration = 18, dot = true}; -- Pounce bleed spells[22570] = {duration = 7, stun = true, combo = true, diminish="incap"}; -- Maim spells[6798] = {duration = 5, cooldown = 60, stun = true, talent = {2, 4, 5, 0.5, "DRUID"}, diminish="stun"}; -- Bash -- ROGUE spells[11305] = {duration = 15, cooldown = 300}; -- Sprint spells[26669] = {duration = 15, cooldown = 300}; -- Evasion spells[26889] = {duration = 10, cooldown = 210}; -- Vanish spells[13877] = {duration = 15, cooldown = 120}; -- Blade flurry spells[13750] = {duration = 15, cooldown = 300}; -- ARush spells[31224] = {duration = 4, cooldown = 60}; -- Cloak of Shadows spells[36554] = {duration = 10, cooldown = 30}; -- Shadowstep spells[26679] = {duration = 5}; -- Deadly Throw spells[2094] = {duration = 10, cooldown = 180, diminish="cyclone"}; -- Blind spells[8629] = {duration = 4, talent = {2, 1, 4, 0.5, "ROGUE"}, stun = true, diminish="incap"}; -- Gouge spells[8643] = {duration = 6, combo = true, stun = true, diminish="kidney"}; -- Kidney Shot spells[1833] = {duration = 4, stun = true, diminish="stun"}; -- Cheap Shot spells[26867] = {duration = 16, combo = true, dot = true}; -- Rupture spells[8632] = {duration = 18, dot = true}; -- Garrote spells[1330] = {duration = 3, dot = true}; -- Garrote silence spells[38768] = {duration = 5, interrupt = true}; -- Kick spells[2070] = {duration = 45, pvpdur = 10, stun = true, diminish="incap"}; -- Sap spells[26866] = {duration = 30}; -- Expose Armor spells[3420] = {duration = 12}; -- Crip spells[3421] = {duration = 12}; -- Crip II spells[13220] = {duration = 15, stacks = true}; -- Wound spells[13228] = {duration = 15, stacks = true}; -- Wound II spells[13229] = {duration = 15, stacks = true}; -- Wound III spells[13230] = {duration = 15, stacks = true}; -- Wound IV spells[27283] = {duration = 15, stacks = true}; -- Wound V spells[5763] = {duration = 10}; -- Mind spells[8694] = {duration = 10}; -- Mind spells[11400] = {duration = 10}; -- Mind spells[2835] = {duration = 12, stacks = true, dot = true}; -- Deadly spells[2837] = {duration = 12, stacks = true, dot = true}; -- Deadly spells[11357] = {duration = 12, stacks = true, dot = true}; -- Deadly spells[11358] = {duration = 12, stacks = true, dot = true}; -- Deadly spells[25347] = {duration = 12, stacks = true, dot = true}; -- Deadly spells[26969] = {duration = 12, stacks = true, dot = true}; -- Deadly spells[27282] = {duration = 12, stacks = true, dot = true}; -- Deadly -- MAGE spells[10225] = {duration = 30}; -- Fire Ward spells[32796] = {duration = 30}; -- Frost Ward spells[12051] = {duration = 8, cooldown = 480}; -- Evocation spells[45438] = {duration = 10, cooldown = 300}; -- Ice Block spells[33405] = {duration = 60, cooldown = 30}; -- Ice Barrier spells[66] = {duration = 8, cooldown = 300}; -- Invisibility spells[12043] = {cooldown = 180}; -- PoM spells[12472] = {duration = 20, cooldown = 180}; -- Icy Veins spells[31642] = {duration = 8}; -- Blazing Speed spells[12042] = {duration = 15, cooldown = 180}; -- AP spells[33042] = {duration = 3}; -- DB spells[27088] = {duration = 8}; -- Frost Nova spells[12497] = {duration = 5}; -- Frostbite spells[10161] = {duration = 8}; -- CoC spells[28594] = {duration = 15, stacks = true}; -- Winter's Chill spells[22959] = {duration = 30, stacks = true}; -- Fire Vuln. spells[12359] = {duration = 2, stun = true}; -- Impact spells[12825] = {duration = 50, pvpdur = 10, diminish="incap"}; -- Poly spells[28271] = {duration = 50, pvpdur = 10, diminish="incap"}; -- Poly spells[28272] = {duration = 50, pvpdur = 10, diminish="incap"}; -- Poly spells[30942] = {duration = 9}; -- Frostbolt spells[1953] = {cooldown = 15}; -- Blink spells[31687] = {duration = 45, cooldown = 180, special = true}; -- Water Elemental spells[11985] = {cooldown = 600}; -- Cold Snap spells[2139] = {duration = 8, cooldown = 24, interrupt = true}; -- CS spells[18469] = {duration = 4, cooldown = 24}; -- Imp CS -- HUNTER spells[14327] = {cooldown = 30}; -- Scare Beast spells[3054] = {duration = 15, cooldown = 300}; -- Rapid fire spells[19263] = {duration = 10, cooldown = 300}; -- Deterence spells[34692] = {duration = 18, cooldown = 120}; -- The Beast Within spells[19574] = {duration = 18, cooldown = 120}; -- Beastial Wraith spells[14268] = {duration = 10}; -- Wing Clip spells[19233] = {duration = 5}; -- RNG, Imp. WC spells[27018] = {duration = 8, dot = true}; -- Viper Sting spells[20904] = {duration = 10}; -- Aimed Shot spells[34490] = {duration = 3, cooldown = 20}; -- Silenecing Shot spells[25295] = {duration = 15, dot = true}; -- Serpent Sting spells[19503] = {duration = 4, cooldown = 30}; -- Scatter shot spells[14309] = {duration = 20, pvpdur = 10, cooldown = 30}; -- Freezing Trap spells[13810] = {duration = 30, cooldown = 30}; -- Frost Trap -- PALADIN spells[1020] = {duration = 12, cooldown = 300}; -- Divine Shield spells[10278] = {duration = 10, cooldown = 300}; -- BoP spells[1044] = {duration = 16, cooldown = 25}; -- BoF spells[27184] = {duration = 30}; -- BoS spells[20059] = {duration = 30, stacks = true}; -- Vengeance spells[31884] = {duration = 20, cooldown = 180}; -- Wings! spells[31842] = {duration = 15, cooldown = 180}; -- Divine Illum spells[20216] = {cooldown = 120}; -- Divine Favor spells[10308] = {duration = 5, stun = true, cooldown = 60}; -- HoJ spells[27180] = {cooldown = 6}; -- HoW -- PRIEST spells[25221] = {duration = 15}; -- Renew spells[10060] = {duration = 15, cooldown = 180}; -- PI spells[25218] = {duration = 30, cooldown = 15}; -- PW: Shield spells[14751] = {cooldown = 180}; -- Inner Focus spells[33206] = {duration = 8, cooldown = 120}; -- Pain Supp. spells[25368] = {duration = 18, dot = true}; -- SW: Pain spells[32996] = {cooldown = 12}; -- SW: Death spells[34433] = {duration = 15, cooldown = 300, special = true}; -- Shadowfiend spells[10890] = {duration = 8, cooldown = 27}; -- Fear spells[15286] = {duration = 60, cooldown = 10}; -- Vampiric Embrace spells[34917] = {duration = 15}; -- Vampiric Touch -- SHAMAN spells[32182] = {duration = 30, cooldown = 600}; -- Heroism spells[2825] = {duration = 30, cooldown = 600}; -- Bloodlust spells[25464] = {duration = 8, cooldown = 6}; -- Frost Shock spells[25457] = {duration = 12, cooldown = 6}; -- Flame Shock spells[8046] = {duration = 2, interrupt = true, cooldown = 6}; -- Earth Shock spells[25442] = {cooldown = 6}; -- Chain Lightning spells[16190] = {duration = 12, cooldown = 300}; -- Mana Tide Totem -- WARLOCK spells[18288] = {cooldown = 180}; -- Amplify Curse spells[18708] = {duration = 15, cooldown = 900}; -- Fel Dom spells[34939] = {duration = 8}; -- Backlash spells[18095] = {duration = 10}; -- Night Fall spells[1094] = {duration = 15, dot = true}; -- Immolate spells[7651] = {duration = 5, dot = true}; -- Drian Life spells[27221] = {duration = 5, dot = true}; -- Drain Mana spells[7648] = {duration = 18, dot = true}; -- Corruption spells[6217] = {duration = 25, dot = true}; -- CoA spells[18880] = {duration = 30, dot = true}; -- Siphon Life spells[17962] = {duration = 3, cooldown = 120}; -- Death Coil spells[6213] = {duration = 20, pvpdur = 10}; -- Fear spells[17928] = {duration = 8}; -- HoT spells[18223] = {duration = 12}; -- CoE spells[11719] = {duration = 30, pvpdur = 10}; -- CoT -- WARRIOR spells[2687] = {duration = 10, cooldown = 60}; -- Bloodrage spells[18499] = {duration = 10, cooldown = 30}; -- Berserker Rage spells[12292] = {duration = 30, cooldown = 180}; -- Death Wish spells[23920] = {duration = 5, cooldon = 10}; -- spell Reflect spells[29838] = {duration = 10}; -- Second Wind spells[25212] = {duration = 10}; -- Hamstring spells[23695] = {duration = 5}; -- RNG LOL Imp. Hamstring spells[12323] = {duration = 6}; -- PH spells[5246] = {duration = 8, cooldown = 180}; -- Itim. Shout spells[30330] = {duration = 10}; -- MS spells[25225] = {duration = 30, stacks = true}; -- Sunder spells[43104] = {duration = 12, dot = true}; -- Deep Wound spells[25208] = {duration = 21, dot = true}; -- Rend spells[25203] = {duration = 30}; -- Demo Shout spells[30633] = {duration = 10}; -- Thunderclap