comparison Libs/DF/spells.lua @ 58:0682d738499b v8.0.1.058

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