Repository navigation
Expand file tree
/
Copy pathBuild.lua
More file actions
3042 lines (2796 loc) · 164 KB
/
Copy pathBuild.lua
File metadata and controls
3042 lines (2796 loc) · 164 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-------------------------------------------------------------------------------
-- BlackwellUI for Azeroth Survivors - Build.lua
-- Copyright (c) 2026 Blackwell Code. All rights reserved. See LICENSE.
-- Cyberpunk Cooldown Manager / Active Build Spells & Aura Buff Tracker.
-- - Centered layout between Hero and Target frames
-- - 36x36 crisp square tiles with 1px black border
-- - Trimmed icons (0.08, 0.92, 0.08, 0.92) eliminating Blizzard borders
-- - Dark swipe cooldown overlay with a bold countdown timer in the centre
-- - Stack / Rank number in bottom-right corner
-- - Full dictionary matching all Azeroth Survivors abilities
-- - Aura Buff Bars with square spell icons and full spell-color matching bars
-- Lua 5.0 / WoW 1.12.1: no '#', no '%', no string methods.
-------------------------------------------------------------------------------
local B = BlackwellUI
local L = B.L
local mod = {}
mod.label = "Build & Cooldowns"
local MAX_TILES = 8
local TILE_SIZE = 32
local TILE_GAP = 2
local MAX_BUFFS = 5
local BUFF_WIDTH = 220
local BUFF_HEIGHT = 16
-- Buff rows built once; the "Max buff bars" option shows up to this many.
local BUFF_POOL = 10
local BUFF_GAP = 2
mod.hint = "Your spells with cooldowns, ranks and upgrade tooltips."
mod.options = {
{ type = "section", label = "Spell tiles" },
{ type = "range", key = "tileSize", label = "Tile size", min = 24, max = 48, step = 2, default = 32, format = "%d px" },
{ type = "range", key = "tileGap", label = "Tile spacing", min = 0, max = 12, step = 1, default = 2, format = "%d px" },
{ type = "range", key = "tilesPerRow", label = "Tiles per row", min = 1, max = 8, step = 1, default = 8, format = "%d" },
{ type = "choice", key = "rowGrowth", label = "Extra rows", default = "up",
values = { { value = "up", label = "Above the first row" }, { value = "down", label = "Below the first row" } } },
{ type = "toggle", key = "showRank", label = "Show rank badge", default = true },
{ type = "toggle", key = "showDots", label = "Show DoT counter", hint = "Active damage-over-time effects of the spell.", default = true },
{ type = "toggle", key = "showSwipe", label = "Show cooldown swipe", default = true },
{ type = "toggle", key = "showCdText", label = "Show cooldown numbers", default = true },
{ type = "range", key = "cdTextSize", label = "Cooldown text size", min = 8, max = 18, step = 1, default = 11, format = "%d", depends = "showCdText" },
{ type = "section", label = "Buff bars" },
{ type = "toggle", db = "showBuffBars", label = "Buff bars above the tiles", default = true },
{ type = "range", key = "maxBuffs", label = "Max buff bars", min = 1, max = 10, step = 1, default = 5, format = "%d" },
{ type = "range", key = "buffWidth", label = "Buff bar width", min = 120, max = 360, step = 10, default = 220, format = "%d px" },
{ type = "range", key = "buffHeight", label = "Buff bar height", min = 10, max = 28, step = 1, default = 16, format = "%d px", reload = true },
{ type = "toggle", key = "showBuffIcons", label = "Show buff icons", default = true },
{ type = "toggle", key = "showBuffTimers", label = "Show buff timers", default = true },
{ type = "section", label = "Level-up button" },
{ type = "toggle", key = "showLevelUp", label = "Show level-up button", hint = "Appears while level-up choices are stored.", default = true },
}
local spellIcons = {}
local buffMax = {}
local SPELL_BUFF_DB -- assigned below; forward-declared so GetAbilityIcon binds the local
local function NormalizeName(str)
if not str or str == "" then return "" end
local s = string.lower(str)
s = string.gsub(s, "^%d+%.%s*", "")
s = string.gsub(s, "%s*%(.-%)", "")
s = string.gsub(s, "%s+", "_")
s = string.gsub(s, "%-+", "_")
s = string.gsub(s, ":+", "")
s = string.gsub(s, "'+", "")
return s
end
-------------------------------------------------------------------------------
-- Magic Schools & Spell Colors (Cyberpunk / Authentic Azeroth Survivors)
-------------------------------------------------------------------------------
local SCHOOL_COLORS = {
Holy = { 1.00, 0.78, 0.15 },
Fire = { 1.00, 0.50, 0.10 },
Frost = { 0.30, 0.72, 1.00 },
Nature = { 0.30, 0.88, 0.25 },
Shadow = { 0.66, 0.38, 1.00 },
Arcane = { 1.00, 0.40, 0.85 },
Physical = { 0.95, 0.27, 0.24 },
}
local SCHOOL_OF = {
["Consecration"] = "Holy", ["Exorcism"] = "Holy", ["Hammer of Wrath"] = "Holy", ["Holy Shock"] = "Holy",
["Holy Wrath"] = "Holy", ["Judgement"] = "Holy", ["Hammer of Justice"] = "Holy", ["Holy Light"] = "Holy",
["Divine Shield"] = "Holy", ["Holy Shield"] = "Holy", ["Redemption"] = "Holy", ["Smite"] = "Holy",
["Holy Nova"] = "Holy", ["Power Word: Shield"] = "Holy", ["Renew"] = "Holy", ["Holy Fire"] = "Holy",
["Shadow Word: Pain"] = "Shadow", ["Mind Blast"] = "Shadow", ["Mind Flay"] = "Shadow", ["Psychic Scream"] = "Shadow",
["Shadow Bolt"] = "Shadow", ["Corruption"] = "Shadow", ["Curse of Agony"] = "Shadow", ["Death Coil"] = "Shadow",
["Drain Life"] = "Shadow", ["Fear"] = "Shadow", ["Shadowmeld"] = "Shadow", ["Shadowburn"] = "Shadow",
["Flame Shock"] = "Fire", ["Magma Totem"] = "Fire", ["Searing Totem"] = "Fire", ["Fire Nova Totem"] = "Fire",
["Fireball"] = "Fire", ["Flamestrike"] = "Fire", ["Fire Blast"] = "Fire", ["Blast Wave"] = "Fire",
["Pyroblast"] = "Fire", ["Immolate"] = "Fire", ["Rain of Fire"] = "Fire", ["Hellfire"] = "Fire",
["Soul Fire"] = "Fire", ["Explosive Trap"] = "Fire", ["Immolation Trap"] = "Fire", ["Conflagrate"] = "Fire",
["Frost Shock"] = "Frost", ["Frostbolt"] = "Frost", ["Frost Nova"] = "Frost", ["Blizzard"] = "Frost",
["Cone of Cold"] = "Frost", ["Ice Barrier"] = "Frost", ["Frost Trap"] = "Frost", ["Freezing Trap"] = "Frost",
["Arcane Missiles"] = "Arcane", ["Arcane Explosion"] = "Arcane", ["Polymorph"] = "Arcane", ["Arcane Shot"] = "Arcane",
["Moonfire"] = "Arcane", ["Starfire"] = "Arcane", ["Hunter's Mark"] = "Arcane", ["Volley"] = "Arcane",
["Lightning Bolt"] = "Nature", ["Chain Lightning"] = "Nature", ["Earth Shock"] = "Nature", ["Lightning Shield"] = "Nature",
["Healing Wave"] = "Nature", ["Wrath"] = "Nature", ["Hurricane"] = "Nature", ["Entangling Roots"] = "Nature",
["Rejuvenation"] = "Nature", ["Regrowth"] = "Nature", ["Thorns"] = "Nature", ["Faerie Fire"] = "Nature",
["Serpent Sting"] = "Nature", ["Thunder Clap"] = "Nature",
["Cleave"] = "Physical", ["Whirlwind"] = "Physical", ["Mortal Strike"] = "Physical", ["Execute"] = "Physical",
["Rend"] = "Physical", ["Charge"] = "Physical", ["Intercept"] = "Physical", ["Heroic Leap"] = "Physical",
["Bladestorm"] = "Physical", ["Overpower"] = "Physical", ["Slam"] = "Physical", ["Sinister Strike"] = "Physical",
["Eviscerate"] = "Physical", ["Backstab"] = "Physical", ["Ambush"] = "Physical", ["Aimed Shot"] = "Physical",
["Multi-Shot"] = "Physical", ["Auto Shot"] = "Physical", ["Auto Attack"] = "Physical", ["Shoot"] = "Physical",
}
-------------------------------------------------------------------------------
-- Azeroth Survivors & Vanilla Spell ID to Canonical Name Master Lookup
-------------------------------------------------------------------------------
local SPELL_ID_TO_NAME = {
-- Warrior
["845"] = "Cleave",
["1680"] = "Whirlwind",
["6343"] = "Thunder Clap",
["8198"] = "Thunder Clap",
["8204"] = "Thunder Clap",
["8205"] = "Thunder Clap",
["11580"] = "Thunder Clap",
["11581"] = "Thunder Clap",
["12294"] = "Mortal Strike",
["21551"] = "Mortal Strike",
["21552"] = "Mortal Strike",
["21553"] = "Mortal Strike",
["5308"] = "Execute",
["20658"] = "Execute",
["20660"] = "Execute",
["20661"] = "Execute",
["20662"] = "Execute",
["772"] = "Rend",
["6546"] = "Rend",
["6547"] = "Rend",
["6548"] = "Rend",
["11572"] = "Rend",
["11573"] = "Rend",
["11574"] = "Rend",
["100"] = "Charge",
["6178"] = "Charge",
["11578"] = "Charge",
["20252"] = "Intercept",
["6544"] = "Heroic Leap",
["46924"] = "Bladestorm",
["1719"] = "Recklessness",
["12292"] = "Death Wish",
["12328"] = "Sweeping Strikes",
["2687"] = "Bloodrage",
["6673"] = "Battle Shout",
["5242"] = "Battle Shout",
["6192"] = "Battle Shout",
["11549"] = "Battle Shout",
["11550"] = "Battle Shout",
["11551"] = "Battle Shout",
["25289"] = "Battle Shout",
["1160"] = "Demoralizing Shout",
["6190"] = "Demoralizing Shout",
["11554"] = "Demoralizing Shout",
["11555"] = "Demoralizing Shout",
["11556"] = "Demoralizing Shout",
["871"] = "Shield Wall",
["12975"] = "Last Stand",
["12880"] = "Enrage",
["12966"] = "Flurry",
["12967"] = "Flurry",
["12968"] = "Flurry",
["12969"] = "Flurry",
["12970"] = "Flurry",
["7384"] = "Overpower",
["7887"] = "Overpower",
["11584"] = "Overpower",
["11585"] = "Overpower",
["1464"] = "Slam",
["8820"] = "Slam",
["11604"] = "Slam",
["11605"] = "Slam",
["1715"] = "Hamstring",
["7372"] = "Hamstring",
["7373"] = "Hamstring",
["694"] = "Mocking Blow",
["355"] = "Taunt",
["676"] = "Disarm",
["6552"] = "Pummel",
["72"] = "Shield Bash",
["18499"] = "Berserker Rage",
["23881"] = "Bloodthirst",
["23892"] = "Bloodthirst",
["23893"] = "Bloodthirst",
["23894"] = "Bloodthirst",
["23922"] = "Shield Slam",
["12721"] = "Deep Wounds",
-- Paladin
["26573"] = "Consecration",
["20116"] = "Consecration",
["20922"] = "Consecration",
["20923"] = "Consecration",
["20924"] = "Consecration",
["24239"] = "Consecration",
["879"] = "Exorcism",
["5614"] = "Exorcism",
["5615"] = "Exorcism",
["10312"] = "Exorcism",
["10313"] = "Exorcism",
["10314"] = "Exorcism",
["24275"] = "Hammer of Wrath",
["24274"] = "Hammer of Wrath",
["20473"] = "Holy Shock",
["20929"] = "Holy Shock",
["20930"] = "Holy Shock",
["2812"] = "Holy Wrath",
["10318"] = "Holy Wrath",
["20271"] = "Judgement",
["853"] = "Hammer of Justice",
["5588"] = "Hammer of Justice",
["5589"] = "Hammer of Justice",
["10308"] = "Hammer of Justice",
["635"] = "Holy Light",
["639"] = "Holy Light",
["647"] = "Holy Light",
["1026"] = "Holy Light",
["1042"] = "Holy Light",
["3472"] = "Holy Light",
["10328"] = "Holy Light",
["10329"] = "Holy Light",
["25292"] = "Holy Light",
["19750"] = "Flash of Light",
["19939"] = "Flash of Light",
["19940"] = "Flash of Light",
["19941"] = "Flash of Light",
["19942"] = "Flash of Light",
["19943"] = "Flash of Light",
["642"] = "Divine Shield",
["1020"] = "Divine Shield",
["20925"] = "Holy Shield",
["20927"] = "Holy Shield",
["20928"] = "Holy Shield",
["1044"] = "Blessing of Freedom",
["1022"] = "Blessing of Protection",
-- Hunter
["75"] = "Auto Shot",
["3044"] = "Arcane Shot",
["14281"] = "Arcane Shot",
["14282"] = "Arcane Shot",
["14283"] = "Arcane Shot",
["14284"] = "Arcane Shot",
["14285"] = "Arcane Shot",
["14286"] = "Arcane Shot",
["14287"] = "Arcane Shot",
["2643"] = "Multi-Shot",
["14288"] = "Multi-Shot",
["14289"] = "Multi-Shot",
["14290"] = "Multi-Shot",
["25294"] = "Multi-Shot",
["1978"] = "Serpent Sting",
["13549"] = "Serpent Sting",
["13550"] = "Serpent Sting",
["13551"] = "Serpent Sting",
["13552"] = "Serpent Sting",
["13553"] = "Serpent Sting",
["13554"] = "Serpent Sting",
["13555"] = "Serpent Sting",
["25295"] = "Serpent Sting",
["1510"] = "Volley",
["14294"] = "Volley",
["14295"] = "Volley",
["13813"] = "Explosive Trap",
["14316"] = "Explosive Trap",
["14317"] = "Explosive Trap",
["5116"] = "Concussive Shot",
["19434"] = "Aimed Shot",
["20900"] = "Aimed Shot",
["20901"] = "Aimed Shot",
["20902"] = "Aimed Shot",
["20903"] = "Aimed Shot",
["20904"] = "Aimed Shot",
["1130"] = "Hunter's Mark",
["14323"] = "Distracting Shot",
["13809"] = "Frost Trap",
["14311"] = "Freezing Trap",
["13795"] = "Immolation Trap",
["19263"] = "Deterrence",
["19574"] = "Bestial Wrath",
-- Rogue
["1752"] = "Sinister Strike",
["1757"] = "Sinister Strike",
["1758"] = "Sinister Strike",
["1759"] = "Sinister Strike",
["1760"] = "Sinister Strike",
["8621"] = "Sinister Strike",
["11293"] = "Sinister Strike",
["11294"] = "Sinister Strike",
["2098"] = "Eviscerate",
["6715"] = "Eviscerate",
["6716"] = "Eviscerate",
["6717"] = "Eviscerate",
["6718"] = "Eviscerate",
["8623"] = "Eviscerate",
["8624"] = "Eviscerate",
["11299"] = "Eviscerate",
["11300"] = "Eviscerate",
["13877"] = "Blade Flurry",
["1943"] = "Rupture",
["2077"] = "Rupture",
["2078"] = "Rupture",
["11267"] = "Rupture",
["11268"] = "Rupture",
["11269"] = "Rupture",
["1776"] = "Gouge",
["1777"] = "Gouge",
["8629"] = "Gouge",
["11285"] = "Gouge",
["11286"] = "Gouge",
["13750"] = "Adrenaline Rush",
["53"] = "Backstab",
["2589"] = "Backstab",
["2590"] = "Backstab",
["2591"] = "Backstab",
["8721"] = "Backstab",
["11279"] = "Backstab",
["11280"] = "Backstab",
["11281"] = "Backstab",
["5171"] = "Slice and Dice",
["6774"] = "Slice and Dice",
["8676"] = "Ambush",
["8724"] = "Ambush",
["8725"] = "Ambush",
["11265"] = "Ambush",
["11266"] = "Ambush",
["14177"] = "Cold Blood",
["11305"] = "Sprint",
["1856"] = "Vanish",
-- Priest
["585"] = "Smite",
["591"] = "Smite",
["598"] = "Smite",
["984"] = "Smite",
["1004"] = "Smite",
["6060"] = "Smite",
["10933"] = "Smite",
["10934"] = "Smite",
["589"] = "Shadow Word: Pain",
["594"] = "Shadow Word: Pain",
["970"] = "Shadow Word: Pain",
["992"] = "Shadow Word: Pain",
["2767"] = "Shadow Word: Pain",
["10892"] = "Shadow Word: Pain",
["10893"] = "Shadow Word: Pain",
["10894"] = "Shadow Word: Pain",
["8092"] = "Mind Blast",
["8102"] = "Mind Blast",
["8103"] = "Mind Blast",
["8104"] = "Mind Blast",
["8105"] = "Mind Blast",
["8106"] = "Mind Blast",
["10945"] = "Mind Blast",
["10946"] = "Mind Blast",
["10947"] = "Mind Blast",
["15237"] = "Holy Nova",
["15430"] = "Holy Nova",
["15431"] = "Holy Nova",
["27799"] = "Holy Nova",
["27800"] = "Holy Nova",
["27801"] = "Holy Nova",
["17"] = "Power Word: Shield",
["592"] = "Power Word: Shield",
["600"] = "Power Word: Shield",
["3747"] = "Power Word: Shield",
["6065"] = "Power Word: Shield",
["6066"] = "Power Word: Shield",
["10898"] = "Power Word: Shield",
["10899"] = "Power Word: Shield",
["10900"] = "Power Word: Shield",
["10901"] = "Power Word: Shield",
["139"] = "Renew",
["6074"] = "Renew",
["6075"] = "Renew",
["6076"] = "Renew",
["6077"] = "Renew",
["6078"] = "Renew",
["10927"] = "Renew",
["10928"] = "Renew",
["10929"] = "Renew",
["25299"] = "Renew",
["15407"] = "Mind Flay",
["17311"] = "Mind Flay",
["17312"] = "Mind Flay",
["17313"] = "Mind Flay",
["17314"] = "Mind Flay",
["18807"] = "Mind Flay",
["8122"] = "Psychic Scream",
["14914"] = "Holy Fire",
-- Shaman
["403"] = "Lightning Bolt",
["529"] = "Lightning Bolt",
["548"] = "Lightning Bolt",
["915"] = "Lightning Bolt",
["943"] = "Lightning Bolt",
["6041"] = "Lightning Bolt",
["10391"] = "Lightning Bolt",
["10392"] = "Lightning Bolt",
["15207"] = "Lightning Bolt",
["15208"] = "Lightning Bolt",
["421"] = "Chain Lightning",
["930"] = "Chain Lightning",
["2860"] = "Chain Lightning",
["10605"] = "Chain Lightning",
["8042"] = "Earth Shock",
["8044"] = "Earth Shock",
["8045"] = "Earth Shock",
["8046"] = "Earth Shock",
["10412"] = "Earth Shock",
["10413"] = "Earth Shock",
["10414"] = "Earth Shock",
["8024"] = "Flame Shock",
["8027"] = "Flame Shock",
["8030"] = "Flame Shock",
["10447"] = "Flame Shock",
["10448"] = "Flame Shock",
["29228"] = "Flame Shock",
["8056"] = "Frost Shock",
["8058"] = "Frost Shock",
["10472"] = "Frost Shock",
["10473"] = "Frost Shock",
["324"] = "Lightning Shield",
["325"] = "Lightning Shield",
["905"] = "Lightning Shield",
["945"] = "Lightning Shield",
["8134"] = "Lightning Shield",
["10431"] = "Lightning Shield",
["10432"] = "Lightning Shield",
["8004"] = "Healing Wave",
["8008"] = "Healing Wave",
["8010"] = "Healing Wave",
["10395"] = "Healing Wave",
["10396"] = "Healing Wave",
["1064"] = "Chain Heal",
["10622"] = "Chain Heal",
["10623"] = "Chain Heal",
["3599"] = "Searing Totem",
["8190"] = "Magma Totem",
["1535"] = "Fire Nova Totem",
-- Mage
["133"] = "Fireball",
["143"] = "Fireball",
["145"] = "Fireball",
["3140"] = "Fireball",
["8400"] = "Fireball",
["8401"] = "Fireball",
["8402"] = "Fireball",
["10148"] = "Fireball",
["10149"] = "Fireball",
["10150"] = "Fireball",
["10151"] = "Fireball",
["116"] = "Frostbolt",
["205"] = "Frostbolt",
["837"] = "Frostbolt",
["7322"] = "Frostbolt",
["8406"] = "Frostbolt",
["8407"] = "Frostbolt",
["8408"] = "Frostbolt",
["10179"] = "Frostbolt",
["10180"] = "Frostbolt",
["10181"] = "Frostbolt",
["5143"] = "Arcane Missiles",
["5144"] = "Arcane Missiles",
["5145"] = "Arcane Missiles",
["8416"] = "Arcane Missiles",
["8417"] = "Arcane Missiles",
["10211"] = "Arcane Missiles",
["10212"] = "Arcane Missiles",
["122"] = "Frost Nova",
["865"] = "Frost Nova",
["6131"] = "Frost Nova",
["10230"] = "Frost Nova",
["1449"] = "Arcane Explosion",
["8437"] = "Arcane Explosion",
["8438"] = "Arcane Explosion",
["8439"] = "Arcane Explosion",
["10201"] = "Arcane Explosion",
["10202"] = "Arcane Explosion",
["10"] = "Blizzard",
["6141"] = "Blizzard",
["8427"] = "Blizzard",
["10185"] = "Blizzard",
["10186"] = "Blizzard",
["10187"] = "Blizzard",
["2120"] = "Flamestrike",
["2121"] = "Flamestrike",
["8422"] = "Flamestrike",
["8423"] = "Flamestrike",
["10215"] = "Flamestrike",
["10216"] = "Flamestrike",
["11366"] = "Pyroblast",
["12505"] = "Pyroblast",
["12522"] = "Pyroblast",
["12523"] = "Pyroblast",
["12524"] = "Pyroblast",
["12525"] = "Pyroblast",
["12526"] = "Pyroblast",
["18809"] = "Pyroblast",
["2136"] = "Fire Blast",
["2137"] = "Fire Blast",
["2138"] = "Fire Blast",
["8412"] = "Fire Blast",
["8413"] = "Fire Blast",
["10197"] = "Fire Blast",
["10199"] = "Fire Blast",
["120"] = "Cone of Cold",
["8492"] = "Cone of Cold",
["10159"] = "Cone of Cold",
["10160"] = "Cone of Cold",
["10161"] = "Cone of Cold",
["11426"] = "Ice Barrier",
["13031"] = "Ice Barrier",
["13032"] = "Ice Barrier",
["13033"] = "Ice Barrier",
["118"] = "Polymorph",
-- Warlock
["686"] = "Shadow Bolt",
["695"] = "Shadow Bolt",
["705"] = "Shadow Bolt",
["1088"] = "Shadow Bolt",
["1106"] = "Shadow Bolt",
["7641"] = "Shadow Bolt",
["11659"] = "Shadow Bolt",
["11660"] = "Shadow Bolt",
["11661"] = "Shadow Bolt",
["25307"] = "Shadow Bolt",
["172"] = "Corruption",
["6222"] = "Corruption",
["6223"] = "Corruption",
["7648"] = "Corruption",
["11671"] = "Corruption",
["11672"] = "Corruption",
["25311"] = "Corruption",
["348"] = "Immolate",
["707"] = "Immolate",
["1094"] = "Immolate",
["2941"] = "Immolate",
["11665"] = "Immolate",
["11667"] = "Immolate",
["11668"] = "Immolate",
["25309"] = "Immolate",
["980"] = "Curse of Agony",
["1014"] = "Curse of Agony",
["6217"] = "Curse of Agony",
["11711"] = "Curse of Agony",
["11712"] = "Curse of Agony",
["11713"] = "Curse of Agony",
["5740"] = "Rain of Fire",
["6219"] = "Rain of Fire",
["11677"] = "Rain of Fire",
["11678"] = "Rain of Fire",
["1949"] = "Hellfire",
["11683"] = "Hellfire",
["11684"] = "Hellfire",
["6789"] = "Death Coil",
["17925"] = "Death Coil",
["17926"] = "Death Coil",
["689"] = "Drain Life",
["699"] = "Drain Life",
["709"] = "Drain Life",
["7651"] = "Drain Life",
["11699"] = "Drain Life",
["11700"] = "Drain Life",
["5782"] = "Fear",
["6215"] = "Fear",
["17877"] = "Shadowburn",
["17962"] = "Conflagrate",
["6353"] = "Soul Fire",
-- Druid
["8921"] = "Moonfire",
["8924"] = "Moonfire",
["8925"] = "Moonfire",
["8926"] = "Moonfire",
["8927"] = "Moonfire",
["8928"] = "Moonfire",
["8929"] = "Moonfire",
["9833"] = "Moonfire",
["9834"] = "Moonfire",
["9835"] = "Moonfire",
["2912"] = "Starfire",
["8949"] = "Starfire",
["8950"] = "Starfire",
["8951"] = "Starfire",
["9875"] = "Starfire",
["9876"] = "Starfire",
["25298"] = "Starfire",
["5176"] = "Wrath",
["5177"] = "Wrath",
["5178"] = "Wrath",
["5179"] = "Wrath",
["5180"] = "Wrath",
["6780"] = "Wrath",
["8905"] = "Wrath",
["9912"] = "Wrath",
["774"] = "Rejuvenation",
["1058"] = "Rejuvenation",
["1430"] = "Rejuvenation",
["2090"] = "Rejuvenation",
["2091"] = "Rejuvenation",
["3627"] = "Rejuvenation",
["8910"] = "Rejuvenation",
["9839"] = "Rejuvenation",
["9840"] = "Rejuvenation",
["9841"] = "Rejuvenation",
["25299"] = "Rejuvenation",
["8936"] = "Regrowth",
["8938"] = "Regrowth",
["8939"] = "Regrowth",
["8940"] = "Regrowth",
["8941"] = "Regrowth",
["9750"] = "Regrowth",
["9856"] = "Regrowth",
["9857"] = "Regrowth",
["9858"] = "Regrowth",
["5185"] = "Healing Touch",
["467"] = "Thorns",
["339"] = "Entangling Roots",
["6807"] = "Maul",
["5221"] = "Shred",
["1079"] = "Rip",
["779"] = "Swipe",
-- Racials
["20600"] = "Perception",
["20598"] = "Perception",
["20550"] = "Perception",
["20572"] = "Blood Fury",
["20573"] = "Blood Fury",
["20574"] = "Blood Fury",
["23234"] = "Blood Fury",
["20594"] = "Stoneform",
["20549"] = "War Stomp",
["7744"] = "Will of the Forsaken",
["20577"] = "Will of the Forsaken",
["20575"] = "Will of the Forsaken",
["20578"] = "Cannibalize",
["20579"] = "Cannibalize",
["20580"] = "Shadowmeld",
["21008"] = "Shadowmeld",
["20554"] = "Berserking",
["26297"] = "Berserking",
["26296"] = "Berserking",
["26669"] = "Berserking",
["28730"] = "Arcane Torrent",
["25046"] = "Arcane Torrent",
["28734"] = "Arcane Torrent",
["20589"] = "Escape Artist",
["20552"] = "Escape Artist",
["2481"] = "Find Treasure",
}
local KEY_NAMES = {
["sw_pain"] = "Shadow Word: Pain",
["pw_shield"] = "Power Word: Shield",
["demo_shout"] = "Demoralizing Shout",
["hunters_mark"] = "Hunter's Mark",
}
local function ResolveSpellKeyToName(key, spell)
if spell and spell ~= "" and not tonumber(spell) then
return spell
end
local kStr = tostring(key or "")
if SPELL_ID_TO_NAME[kStr] then
return SPELL_ID_TO_NAME[kStr]
end
if KEY_NAMES[kStr] then
return KEY_NAMES[kStr]
end
if string.find(kStr, "_") then
local name = string.gsub(kStr, "_", " ")
local first = true
return (string.gsub(name, "(%a)([%w']*)", function(initial, rest)
local word = initial .. rest
if not first and (word == "of" or word == "the" or word == "and") then
return string.lower(word)
end
first = false
return string.upper(initial) .. rest
end))
end
if spell and spell ~= "" then
return spell
end
return kStr
end
-------------------------------------------------------------------------------
-- Azeroth Survivors Master Ability Icons Dictionary
-------------------------------------------------------------------------------
local ABILITY_ICONS = {
-- Warrior
["cleave"] = "Interface\\Icons\\Ability_Warrior_Cleave",
["whirlwind"] = "Interface\\Icons\\Ability_Whirlwind",
["thunder_clap"] = "Interface\\Icons\\Spell_Nature_ThunderClap",
["mortal_strike"] = "Interface\\Icons\\Ability_Warrior_SavageBlow",
["execute"] = "Interface\\Icons\\INV_Sword_48",
["demo_shout"] = "Interface\\Icons\\Ability_Warrior_WarCry",
["demoralizing_shout"] = "Interface\\Icons\\Ability_Warrior_WarCry",
["battle_shout"] = "Interface\\Icons\\Ability_Warrior_BattleShout",
["bloodthirst"] = "Interface\\Icons\\Spell_Nature_BloodLust",
["rend"] = "Interface\\Icons\\Ability_Gouge",
["shield_slam"] = "Interface\\Icons\\INV_Shield_05",
["bloodrage"] = "Interface\\Icons\\Ability_Racial_BloodRage",
["charge"] = "Interface\\Icons\\Ability_Warrior_Charge",
["heroic_leap"] = "Interface\\Icons\\Ability_Warrior_Charge",
["bladestorm"] = "Interface\\Icons\\Ability_Whirlwind",
["deep_wounds"] = "Interface\\Icons\\Ability_BackStab",
["rampage"] = "Interface\\Icons\\Ability_Warrior_Rampage",
["flurry"] = "Interface\\Icons\\Ability_GhoulFrenzy",
["sweeping_strikes"] = "Interface\\Icons\\Ability_Rogue_SliceDice",
["enrage"] = "Interface\\Icons\\Spell_Shadow_UnholyFrenzy",
["death_wish"] = "Interface\\Icons\\Spell_Shadow_DeathPact",
["last_stand"] = "Interface\\Icons\\Spell_Holy_AshesToAshes",
["shield_wall"] = "Interface\\Icons\\Ability_Warrior_ShieldWall",
["retaliation"] = "Interface\\Icons\\Ability_Warrior_Challange",
["recklessness"] = "Interface\\Icons\\Ability_CriticalStrike",
["overpower"] = "Interface\\Icons\\Ability_MeleeDamage",
["slam"] = "Interface\\Icons\\Ability_Warrior_DecisiveStrike",
["hamstring"] = "Interface\\Icons\\Ability_ShockWave",
["mocking_blow"] = "Interface\\Icons\\Ability_Warrior_PunishingBlow",
["taunt"] = "Interface\\Icons\\Spell_Nature_Reincarnation",
["disarm"] = "Interface\\Icons\\Ability_Warrior_Disarm",
["pummel"] = "Interface\\Icons\\INV_Gauntlets_04",
["shield_bash"] = "Interface\\Icons\\Ability_Warrior_ShieldBash",
["intercept"] = "Interface\\Icons\\Ability_Rogue_Sprint",
["berserker_rage"] = "Interface\\Icons\\Spell_Nature_AncestralGuardian",
["blood_frenzy"] = "Interface\\Icons\\Ability_Warrior_BloodFrenzy",
["second_wind"] = "Interface\\Icons\\Ability_Hunter_Harass",
["victory_rush"] = "Interface\\Icons\\Ability_Warrior_Devastate",
["devastate"] = "Interface\\Icons\\INV_Sword_11",
["shockwave"] = "Interface\\Icons\\Ability_Warrior_Shockwave",
["heroic_strike"] = "Interface\\Icons\\Ability_Rogue_Ambush",
["sunder_armor"] = "Interface\\Icons\\Ability_Warrior_Sunder",
["concussion_blow"] = "Interface\\Icons\\Ability_ThunderBolt",
-- Paladin
["consecration"] = "Interface\\Icons\\Spell_Holy_InnerFire",
["exorcism"] = "Interface\\Icons\\Spell_Holy_Excorcism_02",
["hammer_of_wrath"] = "Interface\\Icons\\Ability_ThunderClap",
["holy_shock"] = "Interface\\Icons\\Spell_Holy_SearingLight",
["holy_wrath"] = "Interface\\Icons\\Spell_Holy_Excorcism",
["judgement"] = "Interface\\Icons\\Spell_Holy_RighteousFury",
["hammer_of_justice"] = "Interface\\Icons\\Spell_Holy_SealOfMight",
["holy_light"] = "Interface\\Icons\\Spell_Holy_HolyBolt",
["divine_shield"] = "Interface\\Icons\\Spell_Holy_DivineIntervention",
["holy_shield"] = "Interface\\Icons\\Spell_Holy_BlessingOfProtection",
["redemption"] = "Interface\\Icons\\Spell_Holy_Resurrection",
["blessing_of_freedom"] = "Interface\\Icons\\Spell_Holy_SealOfValor",
-- Hunter
["auto_shot"] = "Interface\\Icons\\INV_Weapon_Bow_07",
["arcane_shot"] = "Interface\\Icons\\Ability_ImpalingBolt",
["multi_shot"] = "Interface\\Icons\\Ability_UpgradeMoonGlaive",
["serpent_sting"] = "Interface\\Icons\\Ability_Hunter_Quickshot",
["volley"] = "Interface\\Icons\\Ability_Marksmanship",
["explosive_trap"] = "Interface\\Icons\\Spell_Fire_SelfDestruct",
["concussive_shot"] = "Interface\\Icons\\Spell_Frost_Stun",
["aimed_shot"] = "Interface\\Icons\\INV_Spear_07",
["immolation_trap"] = "Interface\\Icons\\Spell_Fire_FlameShock",
["frost_trap"] = "Interface\\Icons\\Spell_Frost_FreezingBreath",
["hunters_mark"] = "Interface\\Icons\\Ability_Hunter_SniperShot",
["aspect_of_the_cheetah"] = "Interface\\Icons\\Ability_Mount_JungleTiger",
-- Rogue
["sinister_strike"] = "Interface\\Icons\\Spell_Shadow_RitualOfSacrifice",
["eviscerate"] = "Interface\\Icons\\Ability_Rogue_Eviscerate",
["blade_flurry"] = "Interface\\Icons\\Ability_Warrior_PunishingBlow",
["rupture"] = "Interface\\Icons\\Ability_Rogue_Rupture",
["kidney_shot"] = "Interface\\Icons\\Ability_Rogue_KidneyShot",
["gouge"] = "Interface\\Icons\\Ability_Gouge",
["ghostly_strike"] = "Interface\\Icons\\Spell_Shadow_Curse",
["adrenaline_rush"] = "Interface\\Icons\\Spell_Shadow_ShadowWordDominate",
["backstab"] = "Interface\\Icons\\Ability_BackStab",
["slice_and_dice"] = "Interface\\Icons\\Ability_Rogue_SliceDice",
["seal_fate"] = "Interface\\Icons\\Spell_Shadow_ChillTouch",
["sprint"] = "Interface\\Icons\\Ability_Rogue_Sprint",
-- Priest
["smite"] = "Interface\\Icons\\Spell_Holy_HolySmite",
["sw_pain"] = "Interface\\Icons\\Spell_Shadow_ShadowWordPain",
["shadow_word_pain"] = "Interface\\Icons\\Spell_Shadow_ShadowWordPain",
["mind_blast"] = "Interface\\Icons\\Spell_Shadow_UnholyFrenzy",
["holy_nova"] = "Interface\\Icons\\Spell_Holy_HolyNova",
["pw_shield"] = "Interface\\Icons\\Spell_Holy_PowerWordShield",
["power_word_shield"] = "Interface\\Icons\\Spell_Holy_PowerWordShield",
["renew"] = "Interface\\Icons\\Spell_Holy_Renew",
["holy_fire"] = "Interface\\Icons\\Spell_Holy_SearingLight",
["mind_flay"] = "Interface\\Icons\\Spell_Shadow_SiphonMana",
["psychic_scream"] = "Interface\\Icons\\Spell_Shadow_PsychicScream",
["devouring_plague"] = "Interface\\Icons\\Spell_Shadow_BlackPlague",
["lightwell"] = "Interface\\Icons\\Spell_Holy_SummonLightwell",
["penance"] = "Interface\\Icons\\Spell_Holy_HolySmite",
["fade"] = "Interface\\Icons\\Spell_Magic_LesserInvisibilty",
-- Shaman
["lightning_bolt"] = "Interface\\Icons\\Spell_Nature_Lightning",
["chain_lightning"] = "Interface\\Icons\\Spell_Nature_ChainLightning",
["earth_shock"] = "Interface\\Icons\\Spell_Nature_EarthShock",
["flame_shock"] = "Interface\\Icons\\Spell_Fire_FlameShock",
["frost_shock"] = "Interface\\Icons\\Spell_Frost_FrostShock",
["lightning_shield"] = "Interface\\Icons\\Spell_Nature_LightningShield",
["magma_totem"] = "Interface\\Icons\\Spell_Fire_SelfDestruct",
["searing_totem"] = "Interface\\Icons\\Spell_Fire_SearingTotem",
["fire_nova"] = "Interface\\Icons\\Spell_Fire_SealOfFire",
["healing_wave"] = "Interface\\Icons\\Spell_Nature_MagicImmunity",
["call_of_flame"] = "Interface\\Icons\\Spell_Fire_Immolation",
["ghost_wolf"] = "Interface\\Icons\\Spell_Nature_SpiritWolf",
-- Mage
["fireball"] = "Interface\\Icons\\Spell_Fire_FlameBolt",
["frostbolt"] = "Interface\\Icons\\Spell_Frost_FrostBolt02",
["arcane_missiles"] = "Interface\\Icons\\Spell_Nature_StarFall",
["frost_nova"] = "Interface\\Icons\\Spell_Frost_FrostNova",
["arcane_explosion"] = "Interface\\Icons\\Spell_Nature_WispSplode",
["blizzard"] = "Interface\\Icons\\Spell_Frost_IceStorm",
["flamestrike"] = "Interface\\Icons\\Spell_Fire_SelfDestruct",
["fire_blast"] = "Interface\\Icons\\Spell_Fire_Fireball",
["cone_of_cold"] = "Interface\\Icons\\Spell_Frost_Glacier",
["blast_wave"] = "Interface\\Icons\\Spell_Holy_Excorcism_02",
["pyroblast"] = "Interface\\Icons\\Spell_Fire_Fireball02",
["ice_barrier"] = "Interface\\Icons\\Spell_Ice_Lament",
["polymorph"] = "Interface\\Icons\\Spell_Nature_Polymorph",
["arcane_power"] = "Interface\\Icons\\Spell_Nature_Lightning",
["blink"] = "Interface\\Icons\\Spell_Arcane_Blink",
-- Warlock
["shadow_bolt"] = "Interface\\Icons\\Spell_Shadow_ShadowBolt",
["corruption"] = "Interface\\Icons\\Spell_Shadow_AbominationExplosion",
["immolate"] = "Interface\\Icons\\Spell_Fire_Immolation",
["curse_of_agony"] = "Interface\\Icons\\Spell_Shadow_CurseOfSargeras",
["rain_of_fire"] = "Interface\\Icons\\Spell_Shadow_RainOfFire",
["hellfire"] = "Interface\\Icons\\Spell_Fire_Incinerate",
["death_coil"] = "Interface\\Icons\\Spell_Shadow_DeathCoil",
["searing_pain"] = "Interface\\Icons\\Spell_Fire_SoulBurn",
["drain_life"] = "Interface\\Icons\\Spell_Shadow_LifeDrain02",
["fear"] = "Interface\\Icons\\Spell_Shadow_Possession",
["soul_fire"] = "Interface\\Icons\\Spell_Fire_Fireball02",
-- Druid
["wrath"] = "Interface\\Icons\\Spell_Nature_AbolishMagic",
["moonfire"] = "Interface\\Icons\\Spell_Nature_StarFall",
["starfire"] = "Interface\\Icons\\Spell_Arcane_StarFire",
["hurricane"] = "Interface\\Icons\\Spell_Nature_Lightning",
["insect_swarm"] = "Interface\\Icons\\Spell_Nature_InsectSwarm",
["entangling_roots"] = "Interface\\Icons\\Spell_Nature_StrangleVines",
["rejuvenation"] = "Interface\\Icons\\Spell_Nature_Rejuvenation",
["regrowth"] = "Interface\\Icons\\Spell_Nature_ResistNature",
["thorns"] = "Interface\\Icons\\Spell_Nature_Thorns",
["swipe"] = "Interface\\Icons\\INV_Misc_MonsterClaw_03",
["faerie_fire"] = "Interface\\Icons\\Spell_Nature_FaerieFire",
-- Racials
["blood_fury"] = "Interface\\Icons\\Racial_Orc_BerserkerStrength",
["berserking"] = "Interface\\Icons\\Racial_Troll_Berserk",
["war_stomp"] = "Interface\\Icons\\Ability_WarStomp",
["will_of_the_forsaken"] = "Interface\\Icons\\Spell_Shadow_RaiseDead",
["stoneform"] = "Interface\\Icons\\Spell_Shadow_UnholyStrength",
["escape_artist"] = "Interface\\Icons\\Ability_Rogue_Trip",
["shadowmeld"] = "Interface\\Icons\\Ability_Ambush",
["perception"] = "Interface\\Icons\\Spell_Nature_Sleep",
}
local ABILITY_DESCRIPTIONS = {
["cleave"] = { name = "Cleave", cost = "20 Rage", range = "Melee Range", cast = "Instant", desc = "A sweeping attack that strikes the target and an additional nearby ally, dealing weapon damage plus bonus damage." },
["whirlwind"] = { name = "Whirlwind", cost = "25 Rage", range = "8 yd radius", cast = "Instant", desc = "In a whirlwind of steel, attacks up to 4 nearby enemies, dealing weapon damage." },
["mortal_strike"] = { name = "Mortal Strike", cost = "30 Rage", range = "Melee Range", cast = "Instant", desc = "A vicious strike that deals weapon damage and wounds the target, reducing healing received by 50% for 10 sec." },
["thunder_clap"] = { name = "Thunder Clap", cost = "20 Rage", range = "8 yd radius", cast = "Instant", desc = "Blasts nearby enemies with thunder, increasing the time between their attacks by 10% and dealing Nature damage." },
["demo_shout"] = { name = "Demoralizing Shout", cost = "10 Rage", range = "10 yd radius", cast = "Instant", desc = "Reduces the melee attack power of all nearby enemies for 30 sec." },
["demoralizing_shout"] = { name = "Demoralizing Shout", cost = "10 Rage", range = "10 yd radius", cast = "Instant", desc = "Reduces the melee attack power of all nearby enemies for 30 sec." },
["battle_shout"] = { name = "Battle Shout", cost = "10 Rage", range = "20 yd radius", cast = "Instant", desc = "Increases the melee attack power of party members within 20 yards for 2 min." },
["bloodthirst"] = { name = "Bloodthirst", cost = "30 Rage", range = "Melee Range", cast = "Instant", desc = "Instantly attack the target for damage. In addition, the next 5 successful melee attacks restore health." },
["rend"] = { name = "Rend", cost = "10 Rage", range = "Melee Range", cast = "Instant", desc = "Wounds the target causing them to bleed for physical damage over 15 sec." },
["shield_slam"] = { name = "Shield Slam", cost = "20 Rage", range = "Melee Range", cast = "Instant", desc = "Slams the target with your shield, dealing damage modified by shield block value and dispelling 1 magic effect." },
["execute"] = { name = "Execute", cost = "15 Rage", range = "Melee Range", cast = "Instant", desc = "Attempts to finish off a wounded enemy, dealing massive physical damage. Only usable on enemies with less than 20% health." },
["bloodrage"] = { name = "Bloodrage", cost = "Health", range = "Self", cast = "Instant", desc = "Generates Rage immediately and over time at the cost of health." },
["charge"] = { name = "Charge", cost = "None", range = "8-25 yd range", cast = "Instant", desc = "Charges an enemy, generating Rage and stunning it for 1 sec." },
["rampage"] = { name = "Rampage", cost = "20 Rage", range = "Self", cast = "Instant", desc = "Goes on a rampage, increasing attack power and causing successful melee attacks to increase attack power further." },
["flurry"] = { name = "Flurry", cost = "Passive", range = "Self", cast = "Passive", desc = "Increases attack speed by 30% for your next 3 swings after dealing a critical strike." },
["sweeping_strikes"] = { name = "Sweeping Strikes", cost = "30 Rage", range = "Self", cast = "Instant", desc = "Your next 5 melee attacks strike an additional nearby opponent." },
["consecration"] = { name = "Consecration", cost = "Mana", range = "8 yd radius", cast = "Instant", desc = "Consecrates the land beneath the caster, dealing Holy damage over 8 sec to all enemies who enter the area." },
["exorcism"] = { name = "Exorcism", cost = "Mana", range = "30 yd range", cast = "Instant", desc = "Causes Holy damage to an Undead or Demon target." },
["hammer_of_wrath"] = { name = "Hammer of Wrath", cost = "Mana", range = "30 yd range", cast = "Instant", desc = "Hurls a hammer that strikes an enemy for Holy damage. Only usable on enemies with less than 20% health." },
["holy_shock"] = { name = "Holy Shock", cost = "Mana", range = "20 yd range", cast = "Instant", desc = "Blasts the target with Holy energy, causing Holy damage to an enemy or healing an ally." },
["holy_wrath"] = { name = "Holy Wrath", cost = "Mana", range = "10 yd radius", cast = "Instant", desc = "Sends bolts of holy power in all directions, causing Holy damage to all Undead and Demon targets and stunning them." },
["judgement"] = { name = "Judgement", cost = "Mana", range = "10 yd range", cast = "Instant", desc = "Unleashes the energy of a Seal upon an enemy, dealing damage or applying a debilitating judgement." },
["hammer_of_justice"] = { name = "Hammer of Justice", cost = "Mana", range = "10 yd range", cast = "Instant", desc = "Stuns the target for up to 6 sec." },
["divine_shield"] = { name = "Divine Shield", cost = "Mana", range = "Self", cast = "Instant", desc = "Protects the paladin from all damage and spells for 12 sec, but reduces attack speed by 50%." },
["auto_shot"] = { name = "Auto Shot", cost = "None", range = "8-35 yd range", cast = "Ranged", desc = "Continuously shoots the target with the equipped ranged weapon." },
["arcane_shot"] = { name = "Arcane Shot", cost = "Mana", range = "8-35 yd range", cast = "Instant", desc = "An instant shot that causes Arcane damage." },
["multi_shot"] = { name = "Multi-Shot", cost = "Mana", range = "8-35 yd range", cast = "Instant", desc = "Fires several missiles, hitting up to 3 targets for physical damage." },
["serpent_sting"] = { name = "Serpent Sting", cost = "Mana", range = "8-35 yd range", cast = "Instant", desc = "Stings the target, causing Nature damage over 15 sec." },
["volley"] = { name = "Volley", cost = "Mana", range = "35 yd range", cast = "Channeled", desc = "Continuously fires a volley of ammo into the target area, dealing damage to all targets every second for 6 sec." },
["explosive_trap"] = { name = "Explosive Trap", cost = "Mana", range = "Melee Range", cast = "Instant", desc = "Places a fire trap that explodes when an enemy approaches, causing Fire damage and burning nearby enemies." },
["concussive_shot"] = { name = "Concussive Shot", cost = "Mana", range = "8-35 yd range", cast = "Instant", desc = "Dazes the target, slowing movement speed by 50% for 4 sec." },
["aimed_shot"] = { name = "Aimed Shot", cost = "Mana", range = "8-35 yd range", cast = "3 sec cast", desc = "An aimed shot that increases ranged damage and reduces healing done to the target by 50%." },
["sinister_strike"] = { name = "Sinister Strike", cost = "45 Energy", range = "Melee Range", cast = "Instant", desc = "A vicious strike that deals physical weapon damage to the target." },
["eviscerate"] = { name = "Eviscerate", cost = "35 Energy", range = "Melee Range", cast = "Instant", desc = "Finishing move that causes damage per combo point." },
["blade_flurry"] = { name = "Blade Flurry", cost = "25 Energy", range = "Self", cast = "Instant", desc = "Increases attack speed by 20%. In addition, attacks strike an additional nearby opponent." },
["rupture"] = { name = "Rupture", cost = "25 Energy", range = "Melee Range", cast = "Instant", desc = "Finishing move that causes damage over time based on combo points." },
["gouge"] = { name = "Gouge", cost = "45 Energy", range = "Melee Range", cast = "Instant", desc = "Causes damage and incapacitates the opponent for up to 4 sec. Must be facing target." },
["adrenaline_rush"] = { name = "Adrenaline Rush", cost = "None", range = "Self", cast = "Instant", desc = "Increases energy regeneration rate by 100% for 15 sec." },
["backstab"] = { name = "Backstab", cost = "60 Energy", range = "Melee Range", cast = "Instant", desc = "Backstab the target, causing 150% weapon damage plus additional damage. Must be behind the target." },
["slice_and_dice"] = { name = "Slice and Dice", cost = "25 Energy", range = "Self", cast = "Instant", desc = "Finishing move that increases melee attack speed by 30%." },
["smite"] = { name = "Smite", cost = "Mana", range = "30 yd range", cast = "2.5 sec cast", desc = "Smites an enemy for Holy damage." },
["sw_pain"] = { name = "Shadow Word: Pain", cost = "Mana", range = "30 yd range", cast = "Instant", desc = "A word of darkness that causes Shadow damage over 18 sec." },
["shadow_word_pain"] = { name = "Shadow Word: Pain", cost = "Mana", range = "30 yd range", cast = "Instant", desc = "A word of darkness that causes Shadow damage over 18 sec." },
["mind_blast"] = { name = "Mind Blast", cost = "Mana", range = "30 yd range", cast = "1.5 sec cast", desc = "Blasts the target with shadowy energy for Shadow damage." },
["holy_nova"] = { name = "Holy Nova", cost = "Mana", range = "10 yd radius", cast = "Instant", desc = "Causes an explosion of holy light, dealing Holy damage to all nearby enemies and healing nearby party members." },
["pw_shield"] = { name = "Power Word: Shield", cost = "Mana", range = "40 yd range", cast = "Instant", desc = "Draws on the soul of the friendly target to shield them, absorbing damage for 30 sec." },
["renew"] = { name = "Renew", cost = "Mana", range = "40 yd range", cast = "Instant", desc = "Heals the target for health over 15 sec." },
["mind_flay"] = { name = "Mind Flay", cost = "Mana", range = "20 yd range", cast = "Channeled", desc = "Assaults the target's mind with Shadow energy, causing Shadow damage over 3 sec and slowing movement speed by 50%." },
["lightning_bolt"] = { name = "Lightning Bolt", cost = "Mana", range = "30 yd range", cast = "3 sec cast", desc = "Casts a bolt of lightning at the target for Nature damage." },
["chain_lightning"] = { name = "Chain Lightning", cost = "Mana", range = "30 yd range", cast = "2.5 sec cast", desc = "Hurls a lightning bolt at the enemy, dealing Nature damage and then jumping to nearby enemies." },
["earth_shock"] = { name = "Earth Shock", cost = "Mana", range = "20 yd range", cast = "Instant", desc = "Instantly shocks the target with concussive force, causing Nature damage and interrupting spellcasting." },
["flame_shock"] = { name = "Flame Shock", cost = "Mana", range = "20 yd range", cast = "Instant", desc = "Instantly burns the enemy with Fire damage and additional Fire damage over 12 sec." },
["frost_shock"] = { name = "Frost Shock", cost = "Mana", range = "20 yd range", cast = "Instant", desc = "Instantly shocks the target with frost, dealing Frost damage and slowing movement speed by 50% for 8 sec." },
["lightning_shield"] = { name = "Lightning Shield", cost = "Mana", range = "Self", cast = "Instant", desc = "Surrounds the caster with 3 balls of lightning that damage attackers." },
["fireball"] = { name = "Fireball", cost = "Mana", range = "35 yd range", cast = "3 sec cast", desc = "Hurls a fiery ball that causes Fire damage and burns the target for additional Fire damage over 8 sec." },
["frostbolt"] = { name = "Frostbolt", cost = "Mana", range = "30 yd range", cast = "2.5 sec cast", desc = "Launches a bolt of frost at the enemy, causing Frost damage and slowing movement speed by 40% for 9 sec." },
["arcane_missiles"] = { name = "Arcane Missiles", cost = "Mana", range = "30 yd range", cast = "Channeled", desc = "Launches magical missiles at the enemy, dealing Arcane damage every second for 5 sec." },
["frost_nova"] = { name = "Frost Nova", cost = "Mana", range = "10 yd radius", cast = "Instant", desc = "Blasts enemies near the caster for Frost damage and freezes them in place for up to 8 sec." },
["arcane_explosion"] = { name = "Arcane Explosion", cost = "Mana", range = "10 yd radius", cast = "Instant", desc = "Causes an explosion of arcane magic around the caster, dealing Arcane damage to all targets within 10 yds." },
["blizzard"] = { name = "Blizzard", cost = "Mana", range = "30 yd range", cast = "Channeled", desc = "Ice shards pelt the target area, dealing Frost damage over 8 sec and slowing movement speed by 30%." },
["flamestrike"] = { name = "Flamestrike", cost = "Mana", range = "30 yd range", cast = "3 sec cast", desc = "Calls down a pillar of fire, burning all enemies in the area for Fire damage and additional Fire damage over 8 sec." },
["pyroblast"] = { name = "Pyroblast", cost = "Mana", range = "35 yd range", cast = "6 sec cast", desc = "Hurls an immense fiery boulder that causes huge Fire damage and burns the target over 12 sec." },
["shadow_bolt"] = { name = "Shadow Bolt", cost = "Mana", range = "30 yd range", cast = "3 sec cast", desc = "Sends a shadowy bolt at the enemy, causing Shadow damage." },
["corruption"] = { name = "Corruption", cost = "Mana", range = "30 yd range", cast = "Instant", desc = "Corrupts the target, causing Shadow damage over 18 sec." },
["immolate"] = { name = "Immolate", cost = "Mana", range = "30 yd range", cast = "2 sec cast", desc = "Burns the enemy for Fire damage and an additional Fire damage over 15 sec." },
["curse_of_agony"] = { name = "Curse of Agony", cost = "Mana", range = "30 yd range", cast = "Instant", desc = "Curses the target with agony, causing Shadow damage over 24 sec." },
["rain_of_fire"] = { name = "Rain of Fire", cost = "Mana", range = "30 yd range", cast = "Channeled", desc = "Calls down a fiery rain to burn enemies in the area of effect for Fire damage over 8 sec." },
["hellfire"] = { name = "Hellfire", cost = "Mana", range = "Self", cast = "Channeled", desc = "Ignites the area surrounding the caster, dealing Fire damage to both enemies and the caster every second for 15 sec." },
["death_coil"] = { name = "Death Coil", cost = "Mana", range = "30 yd range", cast = "Instant", desc = "Causes the enemy target to flee in terror for 3 sec and deals Shadow damage, healing the caster for 100% of damage dealt." },
["drain_life"] = { name = "Drain Life", cost = "Mana", range = "20 yd range", cast = "Channeled", desc = "Drains health from the target over 5 sec, transferring health to the caster." },
["moonfire"] = { name = "Moonfire", cost = "Mana", range = "30 yd range", cast = "Instant", desc = "Burns the enemy for Arcane damage and then an additional Arcane damage over 12 sec." },
["starfire"] = { name = "Starfire", cost = "Mana", range = "30 yd range", cast = "3.5 sec cast", desc = "Causes Arcane damage to the target." },
["hurricane"] = { name = "Hurricane", cost = "Mana", range = "30 yd range", cast = "Channeled", desc = "Creates a violent storm in the target area, dealing Nature damage to enemies every second for 10 sec." },
["swipe"] = { name = "Swipe", cost = "20 Rage", range = "Melee Range", cast = "Instant", desc = "Swipes nearby enemies, dealing physical damage to up to 3 targets." },
}
local function GetAbilityIcon(nameOrId)
if not nameOrId or nameOrId == "" then
return "Interface\\Icons\\INV_Misc_QuestionMark"
end
if B and type(B.GetAbilityIcon) == "function" then
local icon = B:GetAbilityIcon(nameOrId)
if icon and icon ~= "Interface\\Icons\\INV_Misc_QuestionMark" then
return icon
end
end
local norm = NormalizeName(nameOrId)
-- Resolve spell ID or key alias to canonical name if needed
local idResolved = SPELL_ID_TO_NAME[nameOrId] or SPELL_ID_TO_NAME[norm] or KEY_NAMES[nameOrId]
if idResolved then
local idNorm = NormalizeName(idResolved)
if ABILITY_ICONS[idNorm] then return ABILITY_ICONS[idNorm] end
if ABILITY_ICONS[idResolved] then return ABILITY_ICONS[idResolved] end
if B and type(B.GetAbilityIcon) == "function" then
local icon = B:GetAbilityIcon(idResolved)
if icon and icon ~= "Interface\\Icons\\INV_Misc_QuestionMark" then
return icon
end
end
end
-- Dynamic weapon icon for Melee / Weapon swings
if norm == "melee" or norm == "attack" or norm == "auto_attack" or norm == "autoattack" or norm == "swing" or norm == "physical" or norm == "hero_melee" or norm == "cuerpo_a_cuerpo" or norm == "nahkampf" then
if type(GetInventoryItemTexture) == "function" then
local wTex = GetInventoryItemTexture("player", 16)
if wTex and wTex ~= "" then
return wTex
end
end
return "Interface\\Icons\\INV_Sword_04"
end
-- Dynamic weapon icon for Ranged / Auto Shot
if norm == "shoot" or norm == "auto_shot" or norm == "autoshot" or norm == "ranged" or norm == "bow" or norm == "disparo_automatico" or norm == "automatischer_schuss" then
if type(GetInventoryItemTexture) == "function" then
local rTex = GetInventoryItemTexture("player", 18)
if rTex and rTex ~= "" then
return rTex
end
end
return "Interface\\Icons\\INV_Weapon_Bow_07"
end