annotate Libs/DF/spells.lua @ 63:3552946c0b9a tip

Added tag v8.2.0.062 for changeset d6704922ef5d
author Tercioo
date Fri, 28 Jun 2019 20:06:18 -0300
parents 0682d738499b
children
rev   line source
Tercio@58 1
Tercio@58 2 local DF = _G ["DetailsFramework"]
Tercio@58 3 if (not DF or not DetailsFrameworkCanLoad) then
Tercio@58 4 return
Tercio@58 5 end
Tercio@58 6
Tercio@58 7 DF.CooldownsBySpec = {
Tercio@58 8 -- 1 attack cooldown
Tercio@58 9 -- 2 personal defensive cooldown
Tercio@58 10 -- 3 targetted defensive cooldown
Tercio@58 11 -- 4 raid defensive cooldown
Tercio@58 12 -- 5 personal utility cooldown
Tercio@58 13
Tercio@58 14 --MAGE
Tercio@58 15 --arcane
Tercio@58 16 [62] = {
Tercio@58 17 [12042] = 1, --Arcane Power
Tercio@58 18 [55342] = 1, --Mirror Image
Tercio@58 19 [45438] = 2, --Ice Block
Tercio@58 20 [12051] = 5, --Evocation
Tercio@58 21 [110960] = 5, --Greater Invisibility
Tercio@58 22 },
Tercio@58 23 --fire
Tercio@58 24 [63] = {
Tercio@58 25 [190319] = 1, --Combustion
Tercio@58 26 [55342] = 1, --Mirror Image
Tercio@58 27 [45438] = 2, --Ice Block
Tercio@58 28 [66] = 5, --Invisibility
Tercio@58 29 },
Tercio@58 30 --frost
Tercio@58 31 [64] = {
Tercio@58 32 [12472] = 1, --Icy Veins
Tercio@58 33 [205021] = 1, --Ray of Frost
Tercio@58 34 [55342] = 1, --Mirror Image
Tercio@58 35 [45438] = 2, --Ice Block
Tercio@58 36 [66] = 5, --Invisibility
Tercio@58 37 [235219] = 5, --Cold Snap
Tercio@58 38 },
Tercio@58 39
Tercio@58 40 --PRIEST
Tercio@58 41 --discipline
Tercio@58 42 [256] = {
Tercio@58 43 [34433] = 1, --Shadowfiend
Tercio@58 44 [123040] = 1, --Mindbender
Tercio@58 45 [33206] = 3, --Pain Suppression
Tercio@58 46 [62618] = 4, --Power Word: Barrier
Tercio@58 47 [271466] = 4, --Luminous Barrier (talent)
Tercio@58 48 [47536] = 5, --Rapture
Tercio@58 49 [19236] = 5, --Desperate Prayer
Tercio@58 50 [8122] = 5, --Psychic Scream
Tercio@58 51 },
Tercio@58 52 --holy
Tercio@58 53 [257] = {
Tercio@58 54 [200183] = 2, --Apotheosis
Tercio@58 55 [47788] = 3, --Guardian Spirit
Tercio@58 56 [64844] = 4, --Divine Hymn
Tercio@58 57 [64901] = 4, --Symbol of Hope
Tercio@58 58 [265202] = 4, --Holy Word: Salvation
Tercio@58 59 [88625] = 5, --Holy Word: Chastise
Tercio@58 60 [34861] = 5, --Holy Word: Sanctify
Tercio@58 61 [2050] = 5, --Holy Word: Serenity
Tercio@58 62 [19236] = 5, --Desperate Prayer
Tercio@58 63 [8122] = 5, --Psychic Scream
Tercio@58 64 },
Tercio@58 65 --shadow priest
Tercio@58 66 [258] = {
Tercio@58 67 [34433] = 1, --Shadowfiend
Tercio@58 68 [200174] = 1, --Mindbender
Tercio@58 69 [193223] = 1, --Surrender to Madness
Tercio@58 70 [47585] = 2, --Dispersion
Tercio@58 71 [15286] = 4, --Vampiric Embrace
Tercio@58 72 [64044] = 5, --Psychic Horror
Tercio@58 73 [8122] = 5, --Psychic Scream
Tercio@58 74 },
Tercio@58 75
Tercio@58 76 --ROGUE
Tercio@58 77 --assassination
Tercio@58 78 [259] = {
Tercio@58 79 [79140] = 1, --Vendetta
Tercio@58 80 [1856] = 2, --Vanish
Tercio@58 81 [5277] = 2, --Evasion
Tercio@58 82 [31224] = 2, --Cloak of Shadows
Tercio@58 83 [2094] = 5, --Blind
Tercio@58 84 [114018] = 5, --Shroud of Concealment
Tercio@58 85 },
Tercio@58 86 --outlaw
Tercio@58 87 [260] = {
Tercio@58 88 [13750] = 1, --Adrenaline Rush
Tercio@58 89 [51690] = 1, --Killing Spree (talent)
Tercio@58 90 [199754] = 2, --Riposte
Tercio@58 91 [31224] = 2, --Cloak of Shadows
Tercio@58 92 [1856] = 2, --Vanish
Tercio@58 93 [2094] = 5, --Blind
Tercio@58 94 [114018] = 5, --Shroud of Concealment
Tercio@58 95 },
Tercio@58 96 --subtlety
Tercio@58 97 [261] = {
Tercio@58 98 [121471] = 1, --Shadow Blades
Tercio@58 99 [31224] = 2, --Cloak of Shadows
Tercio@58 100 [1856] = 2, --Vanish
Tercio@58 101 [5277] = 2, --Evasion
Tercio@58 102 [2094] = 5, --Blind
Tercio@58 103 [114018] = 5, --Shroud of Concealment
Tercio@58 104 },
Tercio@58 105
Tercio@58 106 --WARLOCK
Tercio@58 107 --affliction
Tercio@58 108 [265] = {
Tercio@58 109 [205180] = 1, --Summon Darkglare
Tercio@58 110 [113860] = 1, --Dark Soul: Misery
Tercio@58 111 [104773] = 2, --Unending Resolve
Tercio@58 112
Tercio@58 113 [108416] = 2, --Dark Pact
Tercio@58 114
Tercio@58 115 [30283] = 5, --Shadowfury
Tercio@58 116 [6789] = 5, --Mortal Coil
Tercio@58 117 },
Tercio@58 118 --demo
Tercio@58 119 [266] = {
Tercio@58 120 [265187] = 1, --Summon Demonic Tyrant
Tercio@58 121 [111898] = 1, --Grimoire: Felguard
Tercio@58 122 [267217] = 1, --Nether Portal
Tercio@58 123
Tercio@58 124 [104773] = 2, --Unending Resolve
Tercio@58 125 [108416] = 2, --Dark Pact
Tercio@58 126
Tercio@58 127 [30283] = 5, --Shadowfury
Tercio@58 128 [6789] = 5, --Mortal Coil
Tercio@58 129 },
Tercio@58 130 --destro
Tercio@58 131 [267] = {
Tercio@58 132 [1122] = 1, --Summon Infernal
Tercio@58 133 [113858] = 1, --Dark Soul: Instability
Tercio@58 134
Tercio@58 135 [104773] = 2, --Unending Resolve
Tercio@58 136 [108416] = 2, --Dark Pact
Tercio@58 137
Tercio@58 138 [6789] = 5, --Mortal Coil
Tercio@58 139 [30283] = 5, --Shadowfury
Tercio@58 140 },
Tercio@58 141
Tercio@58 142 --WARRIOR
Tercio@58 143 --Arms
Tercio@58 144 [71] = {
Tercio@58 145 [107574] = 1, --Avatar
Tercio@58 146 [227847] = 1, --Bladestorm
Tercio@58 147 [152277] = 1, --Ravager (talent)
Tercio@58 148
Tercio@58 149 [118038] = 2, --Die by the Sword
Tercio@58 150
Tercio@58 151 [97462] = 4, --Rallying Cry
Tercio@58 152
Tercio@58 153 [18499] = 5, --Berserker Rage
Tercio@58 154 [5246] = 5, --Intimidating Shout
Tercio@58 155 },
Tercio@58 156 --Fury
Tercio@58 157 [72] = {
Tercio@58 158 [1719] = 1, --Recklessness
Tercio@58 159 [46924] = 1, --Bladestorm (talent)
Tercio@58 160
Tercio@58 161 [184364] = 2, --Enraged Regeneration
Tercio@58 162
Tercio@58 163 [97462] = 4, --Rallying Cry
Tercio@58 164
Tercio@58 165 [18499] = 5, --Berserker Rage
Tercio@58 166 [5246] = 5, --Intimidating Shout
Tercio@58 167 },
Tercio@58 168 --Protection
Tercio@58 169 [73] = {
Tercio@58 170 [228920] = 1, --Ravager (talent)
Tercio@58 171 [107574] = 1, --Avatar
Tercio@58 172
Tercio@58 173 [12975] = 2, --Last Stand
Tercio@58 174 [871] = 2, --Shield Wall
Tercio@58 175
Tercio@58 176 [97462] = 4, --Rallying Cry
Tercio@58 177
Tercio@58 178 [18499] = 5, --Berserker Rage
Tercio@58 179 [5246] = 5, --Intimidating Shout
Tercio@58 180 },
Tercio@58 181
Tercio@58 182 --PALADIN
Tercio@58 183 --holy
Tercio@58 184 [65] = {
Tercio@58 185 [31884] = 1, --Avenging Wrath
Tercio@58 186 [216331] = 1, --Avenging Crusader (talent)
Tercio@58 187
Tercio@58 188 [498] = 2, --Divine Protection
Tercio@58 189 [642] = 2, --Divine Shield
Tercio@58 190 [105809] = 2, --Holy Avenger (talent)
Tercio@58 191
Tercio@58 192 [1022] = 3, --Blessing of Protection
Tercio@58 193 [633] = 3, --Lay on Hands
Tercio@58 194
Tercio@58 195 [31821] = 4, --Aura Mastery
Tercio@58 196
Tercio@58 197 [1044] = 5, --Blessing of Freedom
Tercio@58 198 [853] = 5, --Hammer of Justice
Tercio@58 199 [115750] = 5, --Blinding Light (talent)
Tercio@58 200 },
Tercio@58 201
Tercio@58 202 --protection
Tercio@58 203 [66] = {
Tercio@58 204 [31884] = 1, --Avenging Wrath
Tercio@58 205
Tercio@58 206 [31850] = 2, --Ardent Defender
Tercio@58 207 [86659] = 2, --Guardian of Ancient Kings
Tercio@58 208
Tercio@58 209 [1022] = 3, --Blessing of Protection
Tercio@58 210 [204018] = 3, --Blessing of Spellwarding (talent)
Tercio@58 211 [6940] = 3, --Blessing of Sacrifice
Tercio@58 212
Tercio@58 213 [204150] = 4, --Aegis of Light (talent)
Tercio@58 214
Tercio@58 215 [1044] = 5, --Blessing of Freedom
Tercio@58 216 [853] = 5, --Hammer of Justice
Tercio@58 217 [115750] = 5, --Blinding Light (talent)
Tercio@58 218 },
Tercio@58 219
Tercio@58 220 --retribution
Tercio@58 221 [70] = {
Tercio@58 222 [31884] = 1, --Avenging Wrath
Tercio@58 223 [231895] = 1, --Crusade (talent)
Tercio@58 224
Tercio@58 225 [184662] = 2, --Shield of Vengeance
Tercio@58 226 [642] = 2, --Divine Shield
Tercio@58 227
Tercio@58 228 [1022] = 3, --Blessing of Protection
Tercio@58 229 [633] = 3, --Lay on Hands
Tercio@58 230
Tercio@58 231 [1044] = 5, --Blessing of Freedom
Tercio@58 232 [853] = 5, --Hammer of Justice
Tercio@58 233 [115750] = 5, --Blinding Light (talent)
Tercio@58 234 },
Tercio@58 235
Tercio@58 236 --DEMON HUNTER
Tercio@58 237 --havoc
Tercio@58 238 [577] = {
Tercio@58 239 [200166] = 1, --Metamorphosis
Tercio@58 240 [206491] = 1, --Nemesis (talent)
Tercio@58 241
Tercio@58 242 [196555] = 2, --Netherwalk (talent)
Tercio@58 243
Tercio@58 244 [196718] = 4, --Darkness
Tercio@58 245 },
Tercio@58 246 --vengeance
Tercio@58 247 [581] = {
Tercio@58 248 [187827] = 2, --Metamorphosis
Tercio@58 249
Tercio@58 250 [207684] = 5, --Sigil of Misery
Tercio@58 251 [202137] = 5, --Sigil of Silence
Tercio@58 252 [202138] = 5, --Sigil of Chains (talent)
Tercio@58 253 },
Tercio@58 254
Tercio@58 255 --DEATH KNIGHT
Tercio@58 256 --unholy
Tercio@58 257 [252] = {
Tercio@58 258 [275699] = 1, --Apocalypse
Tercio@58 259 [42650] = 1, --Army of the Dead
Tercio@58 260 [49206] = 1, --Summon Gargoyle (talent)
Tercio@58 261
Tercio@58 262 [48792] = 2, --Icebound Fortitude
Tercio@58 263 [48743] = 2, --Death Pact (talent)
Tercio@58 264
Tercio@58 265 },
Tercio@58 266 --frost
Tercio@58 267 [251] = {
Tercio@58 268 [152279] = 1, --Breath of Sindragosa (talent)
Tercio@58 269 [47568] = 1, --Empower Rune Weapon
Tercio@58 270 [279302] = 1, --Frostwyrm's Fury (talent)
Tercio@58 271
Tercio@58 272 [48792] = 2, --Icebound Fortitude
Tercio@58 273 [48743] = 2, --Death Pact (talent)
Tercio@58 274
Tercio@58 275 [207167] = 5, --Blinding Sleet (talent)
Tercio@58 276 },
Tercio@58 277 --blood
Tercio@58 278 [250] = {
Tercio@58 279 [49028] = 1, --Dancing Rune Weapon
Tercio@58 280
Tercio@58 281 [55233] = 2, --Vampiric Blood
Tercio@58 282 [48792] = 2, --Icebound Fortitude
Tercio@58 283
Tercio@58 284 [108199] = 5, --Gorefiend's Grasp
Tercio@58 285 },
Tercio@58 286
Tercio@58 287 --DRUID
Tercio@58 288 --balance
Tercio@58 289 [102] = {
Tercio@58 290 [194223] = 1, --Celestial Alignment
Tercio@58 291 [102560] = 1, --Incarnation: Chosen of Elune (talent)
Tercio@58 292
Tercio@58 293 [22812] = 2, --Barkskin
Tercio@58 294 [108238] = 2, --Renewal (talent)
Tercio@58 295
Tercio@58 296 [29166] = 3, --Innervate
Tercio@58 297
Tercio@58 298 [78675] = 5, --Solar Beam
Tercio@58 299 },
Tercio@58 300 --feral
Tercio@58 301 [103] = {
Tercio@58 302 [106951] = 1, --Berserk
Tercio@58 303 [102543] = 1, --Incarnation: King of the Jungle (talent)
Tercio@58 304
Tercio@58 305 [61336] = 2, --Survival Instincts
Tercio@58 306 [108238] = 2, --Renewal (talent)
Tercio@58 307
Tercio@58 308 [77764] = 4, --Stampeding Roar
Tercio@58 309 },
Tercio@58 310 --guardian
Tercio@58 311 [104] = {
Tercio@58 312 [22812] = 2, --Barkskin
Tercio@58 313 [61336] = 2, --Survival Instincts
Tercio@58 314 [102558] = 2, --Incarnation: Guardian of Ursoc (talent)
Tercio@58 315
Tercio@58 316 [77761] = 4, --Stampeding Roar
Tercio@58 317
Tercio@58 318 [99] = 5, --Incapacitating Roar
Tercio@58 319 },
Tercio@58 320 --restoration
Tercio@58 321 [105] = {
Tercio@58 322
Tercio@58 323 [22812] = 2, --Barkskin
Tercio@58 324 [108238] = 2, --Renewal (talent)
Tercio@58 325 [33891] = 2, --Incarnation: Tree of Life (talent)
Tercio@58 326
Tercio@58 327 [102342] = 3, --Ironbark
Tercio@58 328 [29166] = 3, --Innervate
Tercio@58 329
Tercio@58 330 [740] = 4, --Tranquility
Tercio@58 331 [197721] = 4, --Flourish (talent)
Tercio@58 332
Tercio@58 333 [102793] = 5, --Ursol's Vortex
Tercio@58 334 },
Tercio@58 335
Tercio@58 336 --HUNTER
Tercio@58 337 --beast mastery
Tercio@58 338 [253] = {
Tercio@58 339 [193530] = 1, --Aspect of the Wild
Tercio@58 340 [19574] = 1, --Bestial Wrath
Tercio@58 341 [201430] = 1, --Stampede (talent)
Tercio@58 342 [194407] = 1, --Spitting Cobra (talent)
Tercio@58 343
Tercio@58 344 [186265] = 2, --Aspect of the Turtle
Tercio@58 345
Tercio@58 346 [19577] = 5, --Intimidation
Tercio@58 347 },
Tercio@58 348 --marksmanship
Tercio@58 349 [254] = {
Tercio@58 350 [193526] = 1, --Trueshot
Tercio@58 351
Tercio@58 352 [186265] = 2, --Aspect of the Turtle
Tercio@58 353 [109304] = 2, --Exhilaration
Tercio@58 354 [281195] = 2, --Survival of the Fittest
Tercio@58 355
Tercio@58 356 [187650] = 5, --Freezing Trap
Tercio@58 357 },
Tercio@58 358 --survival
Tercio@58 359 [255] = {
Tercio@58 360 [266779] = 1, --Coordinated Assault
Tercio@58 361
Tercio@58 362 [186265] = 2, --Aspect of the Turtle
Tercio@58 363 [109304] = 2, --Exhilaration
Tercio@58 364
Tercio@58 365 [19577] = 5, --Intimidation
Tercio@58 366 },
Tercio@58 367
Tercio@58 368 --MONK
Tercio@58 369 --brewmaster
Tercio@58 370 [268] = {
Tercio@58 371 [115203] = 2, --Fortifying Brew
Tercio@58 372 [115176] = 2, --Zen Meditation
Tercio@58 373 [122278] = 2, --Dampen Harm (talent)
Tercio@58 374 },
Tercio@58 375 --windwalker
Tercio@58 376 [269] = {
Tercio@58 377 [137639] = 1, --Storm, Earth, and Fire
Tercio@58 378 [123904] = 1, --Invoke Xuen, the White Tiger (talent)
Tercio@58 379 [152173] = 1, --Serenity (talent)
Tercio@58 380
Tercio@58 381 [122470] = 2, --Touch of Karma
Tercio@58 382 [122278] = 2, --Dampen Harm (talent)
Tercio@58 383 [122783] = 2, --Diffuse Magic (talent)
Tercio@58 384
Tercio@58 385 [119381] = 5, --Leg Sweep
Tercio@58 386 },
Tercio@58 387 --mistweaver
Tercio@58 388 [270] = {
Tercio@58 389 [122278] = 2, --Dampen Harm (talent)
Tercio@58 390 [198664] = 2, --Invoke Chi-Ji, the Red Crane (talent)
Tercio@58 391 [243435] = 2, --Fortifying Brew
Tercio@58 392 [122783] = 2, --Diffuse Magic (talent)
Tercio@58 393
Tercio@58 394 [116849] = 3, --Life Cocoon
Tercio@58 395
Tercio@58 396 [115310] = 4, --Revival
Tercio@58 397 },
Tercio@58 398
Tercio@58 399 --SHAMAN
Tercio@58 400 --elemental
Tercio@58 401 [262] = {
Tercio@58 402 [198067] = 1, --Fire Elemental
Tercio@58 403 [192249] = 1, --Storm Elemental (talent)
Tercio@58 404 [114050] = 1, --Ascendance (talent)
Tercio@58 405
Tercio@58 406 [108271] = 2, --Astral Shift
Tercio@58 407
Tercio@58 408 [108281] = 4, --Ancestral Guidance (talent)
Tercio@58 409 },
Tercio@58 410 --enhancement
Tercio@58 411 [263] = {
Tercio@58 412 [51533] = 1, --Feral Spirit
Tercio@58 413 [114051] = 1, --Ascendance (talent)
Tercio@58 414
Tercio@58 415 [108271] = 2, --Astral Shift
Tercio@58 416 },
Tercio@58 417 --restoration
Tercio@58 418 [263] = {
Tercio@58 419 [108271] = 2, --Astral Shift
Tercio@58 420 [114052] = 2, --Ascendance (talent)
Tercio@58 421 [98008] = 4, --Spirit Link Totem
Tercio@58 422 [108280] = 4, --Healing Tide Totem
Tercio@58 423 [207399] = 4, --Ancestral Protection Totem (talent)
Tercio@58 424 },
Tercio@58 425 }
Tercio@58 426
Tercio@58 427 DF.CrowdControlSpells = {
Tercio@58 428 [5246] = "WARRIOR", --Intimidating Shout
Tercio@58 429 [132168] = "WARRIOR", --Shockwave (debuff spellid)
Tercio@58 430 [132169] = "WARRIOR", --Storm Bolt (talent debuff spellid)
Tercio@58 431
Tercio@58 432 [118699] = "WARLOCK", --Fear (debuff spellid)
Tercio@58 433 [6789] = "WARLOCK", --Mortal Coil
Tercio@58 434 [30283] = "WARLOCK", --Shadowfury
Tercio@58 435 [710] = "WARLOCK", --Banish
Tercio@58 436
Tercio@58 437 [118] = "MAGE", --Polymorph
Tercio@58 438 [82691] = "MAGE", --Ring of Frost (debuff spellid)
Tercio@58 439 [122] = "MAGE", --Frost Nova
Tercio@58 440 [157997] = "MAGE", --Ice Nova
Tercio@58 441 [31661] = "MAGE", --Dragon's Breath
Tercio@58 442
Tercio@58 443 [205364] = "PRIEST", --Mind Control (talent)
Tercio@58 444 [605] = "PRIEST", --Mind Control
Tercio@58 445 [8122] = "PRIEST", --Psychic Scream
Tercio@58 446 [9484] = "PRIEST", --Shackle Undead
Tercio@58 447 [200196] = "PRIEST", --Holy Word: Chastise (debuff spellid)
Tercio@58 448 [200200] = "PRIEST", --Holy Word: Chastise (talent debuff spellid)
Tercio@58 449 [226943] = "PRIEST", --Mind Bomb (talent)
Tercio@58 450 [64044] = "PRIEST", --Psychic Horror (talent)
Tercio@58 451
Tercio@58 452 [2094] = "ROGUE", --Blind
Tercio@58 453 [1833] = "ROGUE", --Cheap Shot
Tercio@58 454 [408] = "ROGUE", --Kidney Shot
Tercio@58 455 [6770] = "ROGUE", --Sap
Tercio@58 456 [1776] = "ROGUE", --Gouge
Tercio@58 457
Tercio@58 458 [853] = "PALADIN", --Hammer of Justice
Tercio@58 459 [20066] = "PALADIN", --Repentance (talent)
Tercio@58 460 [105421] = "PALADIN", --Blinding Light (talent)
Tercio@58 461
Tercio@58 462 [221562] = "DEATHKNIGHT", --Asphyxiate
Tercio@58 463 [108194] = "DEATHKNIGHT", --Asphyxiate (talent)
Tercio@58 464 [207167] = "DEATHKNIGHT", --Blinding Sleet
Tercio@58 465
Tercio@58 466 [339] = "DRUID", --Entangling Roots
Tercio@58 467 [2637] = "DRUID", --Hibernate
Tercio@58 468 [61391] = "DRUID", --Typhoon
Tercio@58 469 [102359] = "DRUID", --Mass Entanglement
Tercio@58 470 [99] = "DRUID", --Incapacitating Roar
Tercio@58 471 [236748] = "DRUID", --Intimidating Roar
Tercio@58 472 [5211] = "DRUID", --Mighty Bash
Tercio@58 473 [45334] = "DRUID", --Immobilized
Tercio@58 474 [203123] = "DRUID", --Maim
Tercio@58 475 [50259] = "DRUID", --Dazed (from Wild Charge)
Tercio@58 476 [209753] = "DRUID", --Cyclone (from pvp talent)
Tercio@58 477
Tercio@58 478 [3355] = "HUNTER", --Freezing Trap
Tercio@58 479 [19577] = "HUNTER", --Intimidation
Tercio@58 480 [190927] = "HUNTER", --Harpoon
Tercio@58 481 [162480] = "HUNTER", --Steel Trap
Tercio@58 482
Tercio@58 483 [119381] = "MONK", --Leg Sweep
Tercio@58 484 [115078] = "MONK", --Paralysis
Tercio@58 485 [198909] = "MONK", --Song of Chi-Ji (talent)
Tercio@58 486 [116706] = "MONK", --Disable
Tercio@58 487
Tercio@58 488 [118905] = "SHAMAN", --Static Charge (Capacitor Totem)
Tercio@58 489 [51514] = "SHAMAN", --Hex
Tercio@58 490 [64695] = "SHAMAN", --Earthgrab (talent)
Tercio@58 491
Tercio@58 492 [179057] = "DEMONHUNTER", --Chaos Nova
Tercio@58 493 [217832] = "DEMONHUNTER", --Imprison
Tercio@58 494 [200166] = "DEMONHUNTER", --Metamorphosis
Tercio@58 495 [207685] = "DEMONHUNTER", --Sigil of Misery
Tercio@58 496 }
Tercio@58 497
Tercio@58 498 DF.SpecIds = {
Tercio@58 499 [577] = "DEMONHUNTER",
Tercio@58 500 [581] = "DEMONHUNTER",
Tercio@58 501
Tercio@58 502 [250] = "DEATHKNIGHT",
Tercio@58 503 [251] = "DEATHKNIGHT",
Tercio@58 504 [252] = "DEATHKNIGHT",
Tercio@58 505
Tercio@58 506 [71] = "WARRIOR",
Tercio@58 507 [72] = "WARRIOR",
Tercio@58 508 [73] = "WARRIOR",
Tercio@58 509
Tercio@58 510 [62] = "MAGE",
Tercio@58 511 [63] = "MAGE",
Tercio@58 512 [64] = "MAGE",
Tercio@58 513
Tercio@58 514 [259] = "ROGUE",
Tercio@58 515 [260] = "ROGUE",
Tercio@58 516 [261] = "ROGUE",
Tercio@58 517
Tercio@58 518 [102] = "DRUID",
Tercio@58 519 [103] = "DRUID",
Tercio@58 520 [104] = "DRUID",
Tercio@58 521 [105] = "DRUID",
Tercio@58 522
Tercio@58 523 [253] = "HUNTER",
Tercio@58 524 [254] = "HUNTER",
Tercio@58 525 [255] = "HUNTER",
Tercio@58 526
Tercio@58 527 [262] = "SHAMAN",
Tercio@58 528 [263] = "SHAMAN",
Tercio@58 529 [254] = "SHAMAN",
Tercio@58 530
Tercio@58 531 [256] = "PRIEST",
Tercio@58 532 [257] = "PRIEST",
Tercio@58 533 [258] = "PRIEST",
Tercio@58 534
Tercio@58 535 [265] = "WARLOCK",
Tercio@58 536 [266] = "WARLOCK",
Tercio@58 537 [267] = "WARLOCK",
Tercio@58 538
Tercio@58 539 [65] = "PALADIN",
Tercio@58 540 [66] = "PALADIN",
Tercio@58 541 [70] = "PALADIN",
Tercio@58 542
Tercio@58 543 [268] = "MONK",
Tercio@58 544 [269] = "MONK",
Tercio@58 545 [270] = "MONK",
Tercio@58 546 }
Tercio@58 547
Tercio@58 548 DF.CooldownToClass = {}
Tercio@58 549
Tercio@58 550 DF.CooldownsAttack = {}
Tercio@58 551 DF.CooldownsDeffense = {}
Tercio@58 552 DF.CooldownsExternals = {}
Tercio@58 553 DF.CooldownsRaid = {}
Tercio@58 554
Tercio@58 555 DF.CooldownsAllDeffensive = {}
Tercio@58 556
Tercio@58 557 for specId, cooldownTable in pairs (DF.CooldownsBySpec) do
Tercio@58 558
Tercio@58 559 for spellId, cooldownType in pairs (cooldownTable) do
Tercio@58 560
Tercio@58 561 if (cooldownType == 1) then
Tercio@58 562 DF.CooldownsAttack [spellId] = true
Tercio@58 563
Tercio@58 564 elseif (cooldownType == 2) then
Tercio@58 565 DF.CooldownsDeffense [spellId] = true
Tercio@58 566 DF.CooldownsAllDeffensive [spellId] = true
Tercio@58 567
Tercio@58 568 elseif (cooldownType == 3) then
Tercio@58 569 DF.CooldownsExternals [spellId] = true
Tercio@58 570 DF.CooldownsAllDeffensive [spellId] = true
Tercio@58 571
Tercio@58 572 elseif (cooldownType == 4) then
Tercio@58 573 DF.CooldownsRaid [spellId] = true
Tercio@58 574 DF.CooldownsAllDeffensive [spellId] = true
Tercio@58 575
Tercio@58 576 elseif (cooldownType == 5) then
Tercio@58 577
Tercio@58 578
Tercio@58 579 end
Tercio@58 580
Tercio@58 581 DF.CooldownToClass [spellId] = DF.SpecIds [spellId]
Tercio@58 582
Tercio@58 583 end
Tercio@58 584
Tercio@58 585 end
Tercio@58 586
Tercio@58 587
Tercio@58 588 function DF:FindClassForCooldown (spellId)
Tercio@58 589 for specId, cooldownTable in pairs (DF.CooldownsBySpec) do
Tercio@58 590 local hasCooldown = cooldownTable [spellId]
Tercio@58 591 if (hasCooldown) then
Tercio@58 592 return DF.SpecIds [specId]
Tercio@58 593 end
Tercio@58 594 end
Tercio@58 595 end
Tercio@58 596