Repository navigation
Expand file tree
/
Copy pathCore.lua
More file actions
3213 lines (3018 loc) · 126 KB
/
Copy pathCore.lua
File metadata and controls
3213 lines (3018 loc) · 126 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 - Core.lua
-- Copyright (c) 2026 Pierre (Blackwellcode). All rights reserved. See LICENSE.
-- Cyberpunk-grade HUD & Analytics Engine for Azeroth Survivors (WoW 1.12.1).
-- Lua 5.0 strict: no '#', no '%', no string methods, no '...'.
-- Script handlers use the 1.12 globals this / event / arg1.
-------------------------------------------------------------------------------
if not _G then
_G = getfenv(0)
end
BlackwellUI = {}
local B = BlackwellUI
BlackwallUI = BlackwellUI -- Backwards compatibility alias
B.version = "2.8.1-azs"
B.media = "Interface\\AddOns\\BlackwellUI\\media\\"
B.WHITE = "Interface\\Buttons\\WHITE8X8"
B.SOLID = "Interface\\Buttons\\WHITE8X8"
B.FALLBACK_FONT = "Fonts\\FRIZQT__.TTF"
B.modules = {}
B.moduleOrder = {}
B.movers = {}
B.moverOrder = {}
B.fontStrings = {}
B.bars = {}
B.accents = {}
B.backdrops = {}
B.unlocked = false
B.initialized = false
B.built = false
-------------------------------------------------------------------------------
-- Look: Cyberpunk Themes, Bar Textures, Fonts
-------------------------------------------------------------------------------
B.THEMES = {
["Blackwell"] = { r = 0/255, g = 229/255, b = 255/255 }, -- Neon Cyan (#00e5ff)
["Blackwall"] = { r = 0/255, g = 229/255, b = 255/255 }, -- Alias
["Crimson"] = { r = 255/255, g = 0/255, b = 85/255 }, -- Neon Pink/Red (#ff0055)
["Amber"] = { r = 255/255, g = 184/255, b = 0/255 }, -- Cyber Gold/Amber (#ffb800)
["Emerald"] = { r = 0/255, g = 255/255, b = 136/255 }, -- Matrix Neon Green (#00ff88)
["Violet"] = { r = 168/255, g = 85/255, b = 247/255 }, -- Netrunner Violet (#a855f7)
["Monolith"] = { r = 226/255, g = 232/255, b = 240/255 }, -- Cold Platinum (#e2e8f0)
["Class Colored"] = { class = true },
["Custom"] = { custom = true },
-- Legacy aliases
["Forever"] = { r = 220/255, g = 167/255, b = 127/255 },
["Horde"] = { r = 255/255, g = 90/255, b = 31/255 },
["Alliance"] = { r = 63/255, g = 167/255, b = 255/255 },
["Midnight"] = { r = 120/255, g = 65/255, b = 200/255 },
["Dark"] = { r = 1, g = 1, b = 1 },
}
B.THEME_ORDER = { "Blackwell", "Crimson", "Amber", "Emerald", "Violet", "Monolith", "Class Colored", "Custom" }
-- Only power-of-two textures: the 1.12 renderer rejects other sizes.
-- (atrocity.tga is 256x40 and was dropped; InitDB falls back to the default.)
B.BAR_TEXTURES = {
["Melli"] = "Interface\\AddOns\\BlackwellUI\\media\\textures\\melli.tga",
["Flat"] = "Interface\\Buttons\\WHITE8X8",
["Pixels"] = "Interface\\AddOns\\BlackwellUI\\media\\textures\\pixels-fill.tga",
["Gradient"] = "Interface\\AddOns\\BlackwellUI\\media\\textures\\gradient-light.tga",
["Blizzard"] = "Interface\\TargetingFrame\\UI-StatusBar",
}
B.BAR_TEXTURE_ORDER = { "Melli", "Flat", "Pixels", "Gradient", "Blizzard" }
-- Bundled fonts are SIL OFL 1.1 (license texts next to them in media/fonts);
-- Friz Quadrata is the game client's own font and is not shipped.
B.FONTS = {
["Barlow"] = "Interface\\AddOns\\BlackwellUI\\media\\fonts\\BarlowSemiCondensed-Medium.ttf",
["Barlow Bold"] = "Interface\\AddOns\\BlackwellUI\\media\\fonts\\BarlowSemiCondensed-SemiBold.ttf",
["Fira Sans"] = "Interface\\AddOns\\BlackwellUI\\media\\fonts\\FiraSans Medium.ttf",
["Friz Quadrata"] = "Fonts\\FRIZQT__.TTF",
}
B.FONT_ORDER = { "Barlow", "Barlow Bold", "Fira Sans", "Friz Quadrata" }
-- Fonts removed in 2.7.2 (not redistributable) and their replacements.
B.FONT_RENAMED = { ["Expressway"] = "Barlow", ["Expressway Bold"] = "Barlow Bold", ["Homespun"] = "Barlow" }
B.CLASS_COLORS = {
WARRIOR = { r = 0.78, g = 0.61, b = 0.43 },
PALADIN = { r = 0.96, g = 0.55, b = 0.73 },
HUNTER = { r = 0.67, g = 0.83, b = 0.45 },
ROGUE = { r = 1.00, g = 0.96, b = 0.41 },
PRIEST = { r = 1.00, g = 1.00, b = 1.00 },
SHAMAN = { r = 0.00, g = 0.44, b = 0.87 },
MAGE = { r = 0.41, g = 0.80, b = 0.94 },
WARLOCK = { r = 0.58, g = 0.51, b = 0.79 },
DRUID = { r = 1.00, g = 0.49, b = 0.04 },
}
-- Comprehensive cross-platform aliases (TitleCase, lowercase, German localizations)
local CLASS_ALIASES = {
["Warrior"] = "WARRIOR", ["warrior"] = "WARRIOR", ["Krieger"] = "WARRIOR", ["krieger"] = "WARRIOR", ["KRIEGER"] = "WARRIOR",
["Paladin"] = "PALADIN", ["paladin"] = "PALADIN",
["Hunter"] = "HUNTER", ["hunter"] = "HUNTER", ["Jäger"] = "HUNTER", ["jäger"] = "HUNTER", ["JÄGER"] = "HUNTER", ["Jaeger"] = "HUNTER", ["jaeger"] = "HUNTER", ["JAEGER"] = "HUNTER",
["Rogue"] = "ROGUE", ["rogue"] = "ROGUE", ["Schurke"] = "ROGUE", ["schurke"] = "ROGUE", ["SCHURKE"] = "ROGUE",
["Priest"] = "PRIEST", ["priest"] = "PRIEST", ["Priester"] = "PRIEST", ["priester"] = "PRIEST", ["PRIESTER"] = "PRIEST",
["Shaman"] = "SHAMAN", ["shaman"] = "SHAMAN", ["Schamane"] = "SHAMAN", ["schamane"] = "SHAMAN", ["SCHAMANE"] = "SHAMAN",
["Mage"] = "MAGE", ["mage"] = "MAGE", ["Magier"] = "MAGE", ["magier"] = "MAGE", ["MAGIER"] = "MAGE",
["Warlock"] = "WARLOCK", ["warlock"] = "WARLOCK", ["Hexenmeister"] = "WARLOCK", ["hexenmeister"] = "WARLOCK", ["HEXENMEISTER"] = "WARLOCK",
["Druid"] = "DRUID", ["druid"] = "DRUID", ["Druide"] = "DRUID", ["druide"] = "DRUID", ["DRUIDE"] = "DRUID",
}
for alias, target in pairs(CLASS_ALIASES) do
B.CLASS_COLORS[alias] = B.CLASS_COLORS[target]
end
-- Unit kinds as AZS_UNITS / AZS_TARGET name them.
-- One colour per unit kind for target frame, elites & bosses list and
-- nameplates: boss red, rare guardian yellow, elite blue, normal mobs violet.
-- The Unit Frames page can change them (written in here by its ApplyOptions).
B.KIND_COLORS = {
final = { r = 0.86, g = 0.16, b = 0.42, label = "FINAL BOSS" },
boss = { r = 0.86, g = 0.20, b = 0.20, label = "BOSS" },
elite = { r = 0.25, g = 0.60, b = 1.00, label = "ELITE" },
guardian = { r = 1.00, g = 0.78, b = 0.15, label = "GUARDIAN" },
normal = { r = 0.58, g = 0.42, b = 0.92, label = "" },
dead = { r = 0.40, g = 0.40, b = 0.40, label = "DEAD" },
}
function B:KindColor(kind)
local c = self.KIND_COLORS[kind] or self.KIND_COLORS.normal
return c.r, c.g, c.b
end
B.PHASE_COLORS = {
ready = { r = 0.70, g = 0.70, b = 0.70, label = "READY" },
playing = { r = 0.30, g = 0.90, b = 0.45, label = "PLAYING" },
choosing = { r = 0.35, g = 0.75, b = 1.00, label = "CHOOSING" },
paused = { r = 1.00, g = 0.82, b = 0.20, label = "PAUSED" },
dead = { r = 1.00, g = 0.25, b = 0.25, label = "DEAD" },
victory = { r = 1.00, g = 0.84, b = 0.00, label = "VICTORY" },
}
-------------------------------------------------------------------------------
-- Saved Variables
-------------------------------------------------------------------------------
local DEFAULTS = {
theme = "Blackwell",
customAccent = { r = 0/255, g = 229/255, b = 255/255 },
backdropAlpha = 0.85,
barTexture = "Melli",
font = "Barlow",
fontScaleMod = 0,
chatFontSize = 12,
scale = 1.0,
autoScale = true,
demo = false,
replaceHud = true,
hideBanners = false,
hideLoot = false,
meterMode = "damage",
mergeItemProcs = false,
colorHealthByClass = true,
showBuffBars = true,
showGrid = true,
-- Off by default: the alerts are class-agnostic (Overpower/Execute) and
-- fire "ready" for spells the game casts automatically.
sctAlerts = false,
statsGrowUp = false,
-- "auto" follows the game language (CVar azsLanguage); otherwise a code
-- from B.LANGUAGES.
language = "auto",
pinCaches = true,
pinLairs = true,
pinEdge = "clamp",
filterChatSpam = true,
-- Look: "round" (default) or "sharp" (the angular style up to 2.7);
-- frames are built in one style, so switching needs a /reload.
uiStyle = "round",
cornerRadius = 10,
-- nil = the style's own panel colour; { r, g, b } once the player picks one.
panelColor = false,
fontOutline = "OUTLINE",
tooltipScale = 0.82,
tooltipAnchor = "hud",
tooltipHideInCombat = false,
tooltipReactionColor = true,
welcomeMessage = true,
-- Per-module settings: mod[moduleKey][optionKey] (see B:ModOpt).
mod = {},
modules = {
actionbars = true,
minimap = true,
pins = true,
unitframes = true,
chat = true,
castbar = true,
build = true,
meter = true,
timer = true,
databar = true,
stats = true,
nameplates = false,
combattext = true,
character = true,
loot = true,
rares = true,
equipment = true,
},
positions = {},
-- Original values of every stock CVar / option global the addon overrides
-- (see "Managed stock state"); empty while nothing is overridden.
stockCVars = {},
stockGlobals = {},
}
local function MergeDefaults(src, dst)
if type(dst) ~= "table" then dst = {} end
for k, v in pairs(src) do
if type(v) == "table" then
dst[k] = MergeDefaults(v, dst[k])
elseif dst[k] == nil then
dst[k] = v
end
end
return dst
end
function B:InitDB()
if self.initialized then return end
if not BlackwellUIDB then
if BlackwallUIDB then
BlackwellUIDB = BlackwallUIDB
end
end
local isUpgrade = (BlackwellUIDB ~= nil)
BlackwellUIDB = MergeDefaults(DEFAULTS, BlackwellUIDB)
self.db = BlackwellUIDB
if not self.db.layoutVersion or self.db.layoutVersion < 12 then
if self.db.layoutVersion and self.db.layoutVersion < 10 then
self.db.positions = {}
if self.db.modules then
self.db.modules.nameplates = false
end
self.db.autoScale = true
self.db.scale = self:GetOptimalScale()
end
if self.db.modules then
if self.db.modules.combattext == nil then
self.db.modules.combattext = true
end
self.db.modules.nameplates = false
end
self.db.replaceHud = true
self.db.layoutVersion = 12
end
-- v14 repeats the v13 seeding: a v13 test build cleared the snapshot at
-- logout while the client kept the zeroed CVars.
if self.db.layoutVersion < 14 then
if isUpgrade then
-- Up to 2.6.7 the Blizzard bars were hidden whatever the toggle said,
-- and stock CVars were zeroed without a snapshot. Keep the bars hidden
-- now that the toggle works, and seed the snapshot so the next restore
-- brings zeroed values back to the client default once.
self.db.modules.actionbars = true
self:SeedLegacyStockSnapshot()
end
self.db.layoutVersion = 14
end
if self.db.autoScale == nil then
self.db.autoScale = true
end
if self.db.autoScale then
self.db.scale = self:GetOptimalScale()
end
if not self.THEMES[self.db.theme] then self.db.theme = DEFAULTS.theme end
if not self.BAR_TEXTURES[self.db.barTexture] then self.db.barTexture = DEFAULTS.barTexture end
if self.FONT_RENAMED[self.db.font] then self.db.font = self.FONT_RENAMED[self.db.font] end
if not self.FONTS[self.db.font] then self.db.font = DEFAULTS.font end
if type(self.db.scale) ~= "number" or self.db.scale < 0.5 or self.db.scale > 2 then
self.db.scale = 1.0
end
if type(self.db.backdropAlpha) ~= "number" or self.db.backdropAlpha < 0.2 or self.db.backdropAlpha > 1.0 then
self.db.backdropAlpha = 0.85
end
if type(self.db.fontScaleMod) ~= "number" then
self.db.fontScaleMod = 0
end
if type(self.db.chatFontSize) ~= "number" then
self.db.chatFontSize = 12
end
if self.db.uiStyle ~= "round" and self.db.uiStyle ~= "sharp" then
self.db.uiStyle = "round"
end
if type(self.db.cornerRadius) ~= "number" or self.db.cornerRadius < 2 or self.db.cornerRadius > 16 then
self.db.cornerRadius = 10
end
if self.db.fontOutline ~= "OUTLINE" and self.db.fontOutline ~= "THICKOUTLINE" and self.db.fontOutline ~= "NONE" then
self.db.fontOutline = "OUTLINE"
end
if type(self.db.tooltipScale) ~= "number" or self.db.tooltipScale < 0.5 or self.db.tooltipScale > 1.5 then
self.db.tooltipScale = 0.82
end
if type(self.db.mod) ~= "table" then
self.db.mod = {}
end
if type(self.db.language) ~= "string" or (self.db.language ~= "auto" and type(self.IsKnownLanguage) == "function" and not self:IsKnownLanguage(self.db.language)) then
self.db.language = "auto"
end
if type(self.ApplyLocale) == "function" then
self:ApplyLocale()
end
self.initialized = true
end
-------------------------------------------------------------------------------
-- Formatting (Lua 5.0 safe)
-------------------------------------------------------------------------------
function B:Print(msg)
if DEFAULT_CHAT_FRAME then
DEFAULT_CHAT_FRAME:AddMessage("|cff00e5ffBlackwellUI|r: " .. tostring(msg))
end
end
function B:Num(v)
return tonumber(v) or 0
end
function B:Short(v)
local n = tonumber(v) or 0
local a = n
if a < 0 then a = -a end
if a >= 1000000 then
return string.format("%.2fM", n / 1000000)
elseif a >= 10000 then
return string.format("%.1fK", n / 1000)
elseif a >= 1000 then
return string.format("%.2fK", n / 1000)
end
return string.format("%d", math.floor(n + 0.5))
end
function B:Clock(sec)
local s = math.floor(tonumber(sec) or 0)
if s < 0 then s = 0 end
return string.format("%d:%02d", math.floor(s / 60), math.mod(s, 60))
end
function B:Countdown(sec)
local s = tonumber(sec) or 0
if s <= 0 then return "" end
if s < 10 then
return string.format("%.1f", s)
elseif s < 60 then
return string.format("%d", math.floor(s + 0.5))
end
return string.format("%dm", math.floor(s / 60 + 0.5))
end
function B:Percent(cur, max)
local c = tonumber(cur) or 0
local m = tonumber(max) or 0
if m <= 0 then return 0 end
local p = c / m
if p < 0 then p = 0 end
if p > 1 then p = 1 end
return p
end
-- "rain_of_fire" -> "Rain Of Fire"; real names pass through unchanged.
function B:PrettyName(v)
if v == nil then return "" end
local s = tostring(v)
if string.find(s, "_", 1, 1) and not string.find(s, " ", 1, 1) then
s = string.gsub(s, "_", " ")
s = string.gsub(s, "(%a)(%w*)", function(first, rest)
return string.upper(first) .. rest
end)
end
return s
end
-- Up to three letters for an icon-less tile: "Mortal Strike" -> "MS".
function B:Initials(v)
local s = self:PrettyName(v)
local out = ""
local count = 0
local pos = 1
while count < 3 do
local st, en, word = string.find(s, "(%a+)", pos)
if not st then break end
out = out .. string.upper(string.sub(word, 1, 1))
count = count + 1
pos = en + 1
end
if count == 1 then
out = string.upper(string.sub(s, 1, 3))
end
return out
end
local function StripAccents(s)
if not s or s == "" then return "" end
s = string.gsub(s, "á", "a")
s = string.gsub(s, "é", "e")
s = string.gsub(s, "í", "i")
s = string.gsub(s, "ó", "o")
s = string.gsub(s, "ú", "u")
s = string.gsub(s, "ñ", "n")
s = string.gsub(s, "ü", "ue")
s = string.gsub(s, "ä", "ae")
s = string.gsub(s, "ö", "oe")
s = string.gsub(s, "ß", "ss")
s = string.gsub(s, "Á", "a")
s = string.gsub(s, "É", "e")
s = string.gsub(s, "Í", "i")
s = string.gsub(s, "Ó", "o")
s = string.gsub(s, "Ú", "u")
s = string.gsub(s, "Ñ", "n")
return s
end
local function CoreNormalize(name)
if not name then return "" end
local s = string.lower(name)
s = StripAccents(s)
s = string.gsub(s, "^%d+%.%s*", "")
s = string.gsub(s, "%s*%([%w%s]+%)%s*$", "")
s = string.gsub(s, "[%s%-%p]+", "_")
s = string.gsub(s, "^_+", "")
s = string.gsub(s, "_+$", "")
return s
end
local MASTER_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",
["weakened_soul"] = "Interface\\Icons\\Spell_Holy_AshesToAshes",
["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_Cyclone",
["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",
}
B.MASTER_ABILITY_ICONS = MASTER_ABILITY_ICONS
local EXTRA_ABILITY_ICONS = {
["Pets"] = "Interface\\Icons\\Ability_Hunter_BeastCall",
["Pet"] = "Interface\\Icons\\Ability_Hunter_BeastCall",
["pets"] = "Interface\\Icons\\Ability_Hunter_BeastCall",
["pet"] = "Interface\\Icons\\Ability_Hunter_BeastCall",
["Pad"] = "Interface\\Icons\\Ability_Hunter_BeastCall",
["pad"] = "Interface\\Icons\\Ability_Hunter_BeastCall",
["Melee"] = "Interface\\Icons\\INV_Sword_04",
["Auto Attack"] = "Interface\\Icons\\INV_Sword_04",
["Damage Shield"] = "Interface\\Icons\\Spell_Nature_Thorns",
["Hot Streak"] = "Interface\\Icons\\Spell_Fire_Fireball02",
["Windfury"] = "Interface\\Icons\\Spell_Nature_Cyclone",
["Lightning Overload"] = "Interface\\Icons\\Spell_Nature_CallStorm",
["Shadowy Apparitions"] = "Interface\\Icons\\Spell_Shadow_Haunting",
["Seed of Corruption"] = "Interface\\Icons\\Spell_Shadow_CurseOfMannoroth",
["Maelstrom Weapon"] = "Interface\\Icons\\Spell_Nature_Lightning",
["Leech"] = "Interface\\Icons\\Spell_Shadow_LifeDrain",
["Onyxia Tooth Pendant"] = "Interface\\Icons\\INV_Jewelry_Necklace_09",
["Choker of the Fire Lord"] = "Interface\\Icons\\INV_Jewelry_Amulet_05",
["Choker of Enlightenment"] = "Interface\\Icons\\INV_Jewelry_Necklace_10",
["Prestor's Talisman of Connivery"] = "Interface\\Icons\\INV_Jewelry_Necklace_17",
["Animated Chain Necklace"] = "Interface\\Icons\\INV_Jewelry_Necklace_01",
["Woven Ivy Necklace"] = "Interface\\Icons\\INV_Misc_Herb_15",
["Amulet of the Darkmoon"] = "Interface\\Icons\\INV_Jewelry_Necklace_14",
["Jeklik's Opaline Talisman"] = "Interface\\Icons\\INV_Jewelry_Necklace_03",
["The Eye of Hakkar"] = "Interface\\Icons\\INV_Jewelry_Necklace_22",
["Medallion of Steadfast Might"] = "Interface\\Icons\\INV_Jewelry_Amulet_03",
["Amulet of Vek'nilash"] = "Interface\\Icons\\INV_Jewelry_Necklace_AhnQiraj_01",
["Pendant of the Fallen Dragon"] = "Interface\\Icons\\INV_Jewelry_Necklace_12",
["Malice Stone Pendant"] = "Interface\\Icons\\INV_Jewelry_Necklace_29",
["Infernal"] = "Interface\\Icons\\Spell_Shadow_SummonInfernal",
["Doomguard"] = "Interface\\Icons\\Spell_Shadow_SummonInfernal",
["Felguard"] = "Interface\\Icons\\Spell_Shadow_Metamorphosis",
["Divine Storm"] = "Interface\\Icons\\Spell_Holy_SealOfRighteousness",
["Imp"] = "Interface\\Icons\\Spell_Shadow_SummonImp",
["Felhunter"] = "Interface\\Icons\\Spell_Shadow_SummonFelHunter",
["Succubus"] = "Interface\\Icons\\Spell_Shadow_SummonSuccubus",
["Pit Lord"] = "Interface\\Icons\\Spell_Shadow_UnholyStrength",
["Water Elemental"] = "Interface\\Icons\\Spell_Frost_SummonWaterElemental",
["Treant"] = "Interface\\Icons\\Spell_Nature_ForceOfNature",
["Spirit Wolf"] = "Interface\\Icons\\Spell_Nature_SpiritWolf",
["Wolf"] = "Interface\\Icons\\Ability_Hunter_Pet_Wolf",
["Raptor"] = "Interface\\Icons\\Ability_Hunter_Pet_Raptor",
["Amulet of the Ancients"] = "Interface\\Icons\\INV_Jewelry_Necklace_13",
["Amulet of the Inferno"] = "Interface\\Icons\\INV_Jewelry_Necklace_AhnQiraj_03",
["Arcane Fortitude"] = "Interface\\Icons\\Spell_Arcane_ArcaneResilience",
["Arcane Reach"] = "Interface\\Icons\\Spell_Arcane_StarFire",
["Archimtiros' Ring of Reckoning"] = "Interface\\Icons\\INV_Jewelry_Ring_40",
["Ardent Defender"] = "Interface\\Icons\\Spell_Holy_HolyProtection",
["Band of Accuria"] = "Interface\\Icons\\INV_Jewelry_Ring_15",
["Blackhand's Breadth"] = "Interface\\Icons\\INV_Misc_ArmorKit_09",
["Blessed Life"] = "Interface\\Icons\\Spell_Holy_GreaterBlessingofSanctuary",
["Blooddrinker's Band"] = "Interface\\Icons\\INV_Jewelry_Ring_49Naxxramas",
["Breath of the Black Dragon"] = "Interface\\Icons\\INV_Jewelry_Necklace_27Naxxramas",
["Call of the Elements"] = "Interface\\Icons\\Spell_Totem_WardOfDraining",
["Contagion"] = "Interface\\Icons\\Spell_Shadow_PlagueCloud",
["Dashing Scarlet Cloak"] = "Interface\\Icons\\INV_Misc_Cape_08",
["Daybreak"] = "Interface\\Icons\\Spell_Holy_Excorcism",
["Defias Bandana"] = "Interface\\Icons\\INV_Misc_Bandana_03",
["Demonic Empowerment"] = "Interface\\Icons\\Spell_Nature_RemoveCurse",
["Demonic Supremacy"] = "Interface\\Icons\\Spell_Shadow_CurseOfAchimonde",
["Explosive Ammunition"] = "Interface\\Icons\\Spell_Fire_SelfDestruct",
["Ferocious Inspiration"] = "Interface\\Icons\\Ability_Hunter_BeastCall",
["Fortified"] = "Interface\\Icons\\Ability_Warrior_ShieldWall",
["Gnomish Goggles"] = "Interface\\Icons\\INV_Helmet_47",
["Gnomish Universal Remote"] = "Interface\\Icons\\INV_Misc_PocketWatch_01",
["Gold-sniffer"] = "Interface\\Icons\\INV_Misc_Coin_01",
["Hallowed Ground"] = "Interface\\Icons\\Spell_Holy_SealOfProtection",
["Hammer of the Righteous"] = "Interface\\Icons\\Spell_Holy_BlessingOfProtection",
["Heart of the Earthshaker"] = "Interface\\Icons\\INV_Jewelry_Necklace_AhnQiraj_02",
["Heavy Dark Iron Ring"] = "Interface\\Icons\\INV_Jewelry_Ring_14",
["Heavy Shield"] = "Interface\\Icons\\INV_Shield_05",
["Holy Concentration"] = "Interface\\Icons\\Spell_Holy_SpellWarding",
["Holy Guidance"] = "Interface\\Icons\\Spell_Holy_SealOfSalvation",
["Horde Officer's Tabard"] = "Interface\\Icons\\INV_Misc_TabardPVP_03",
["Horn of the Warchief"] = "Interface\\Icons\\INV_Misc_Horn_01",
["Improved Berserker Stance"] = "Interface\\Icons\\Ability_Racial_Avatar",
["Improved Consecration"] = "Interface\\Icons\\Spell_Holy_InnerFire",
["Improved Ice Barrier"] = "Interface\\Icons\\Spell_Ice_Lament",
["Improved Multi-Shot"] = "Interface\\Icons\\Ability_UpgradeMoonGlaive",
["Improved Shield Slam"] = "Interface\\Icons\\Ability_Warrior_ShieldBash",
["Improved Whirlwind"] = "Interface\\Icons\\Ability_Whirlwind",
["Insignia of the Horde"] = "Interface\\Icons\\INV_Jewelry_TrinketPVP_02",
["Keen Eye"] = "Interface\\Icons\\INV_Misc_Spyglass_02",
["Kill Shot"] = "Interface\\Icons\\INV_Weapon_Rifle_08",
["Killing Spree"] = "Interface\\Icons\\Ability_Rogue_Sprint",
["Lifegiving Gem"] = "Interface\\Icons\\INV_Misc_Gem_Pearl_05",
["Light's Grace"] = "Interface\\Icons\\Spell_Holy_SearingLight",
["Long Leash"] = "Interface\\Icons\\Ability_Hunter_BeastCall",
["Major Soulstone"] = "Interface\\Icons\\INV_Misc_Orb_04",
["Mark of Fordring"] = "Interface\\Icons\\INV_Jewelry_Talisman_07",
["Master Dragonslayer's Ring"] = "Interface\\Icons\\INV_Jewelry_Ring_41",
["Medallion of the Bladestorm"] = "Interface\\Icons\\INV_Jewelry_Necklace_30Naxxramas",
["Mortal Wounds"] = "Interface\\Icons\\Ability_Warrior_SavageBlow",
["Mutilate"] = "Interface\\Icons\\INV_Weapon_ShortBlade_05",
["Onyxia Blood Talisman"] = "Interface\\Icons\\Spell_Shadow_LifeDrain",
["Opening Hand"] = "Interface\\Icons\\INV_Misc_Book_09",
["Pact of the Annihilan"] = "Interface\\Icons\\Spell_Shadow_UnholyStrength",
["Pendant of the Plague"] = "Interface\\Icons\\INV_Jewelry_Necklace_18",
["Piercing Shots"] = "Interface\\Icons\\Ability_PierceDamage",
["Pristine Enchanted South Seas Kelp"] = "Interface\\Icons\\INV_Jewelry_Necklace_26",
["Protection"] = "Interface\\Icons\\Spell_Holy_DevotionAura",
["Purifying Power"] = "Interface\\Icons\\Spell_Holy_Purify",
["Quick Paws"] = "Interface\\Icons\\Ability_Hunter_Pet_Cat",
["Quick Strike Ring"] = "Interface\\Icons\\INV_Jewelry_Ring_07",
["Radiance"] = "Interface\\Icons\\Spell_Holy_HolyNova",
["Rapture"] = "Interface\\Icons\\Spell_Holy_PowerInfusion",
["Ring of Spell Power"] = "Interface\\Icons\\INV_Jewelry_Ring_38",
["Ring of the Devoured"] = "Interface\\Icons\\INV_Jewelry_Ring_AhnQiraj_05",
["Royal Seal of Eldre'Thalas"] = "Interface\\Icons\\INV_Jewelry_Talisman_10",
["Rune-hound"] = "Interface\\Icons\\INV_Misc_Rune_01",
["Sacred Duty"] = "Interface\\Icons\\Spell_Holy_DivineIntervention",
["Sanctified Light"] = "Interface\\Icons\\Spell_Holy_HealingFocus",
["Seal of the Damned"] = "Interface\\Icons\\INV_Jewelry_Ring_51Naxxramas",
["Second Thoughts"] = "Interface\\Icons\\Spell_Nature_TimeStop",
["Shadow Dance"] = "Interface\\Icons\\Spell_Shadow_LifeDrain",
["Shadow Embrace"] = "Interface\\Icons\\Spell_Shadow_AbominationExplosion",
["Shield Mastery"] = "Interface\\Icons\\Ability_Defend",
["Soul Devourer"] = "Interface\\Icons\\Spell_Shadow_SummonFelHunter",
["Spiritual Attunement"] = "Interface\\Icons\\Spell_Holy_BlessedRecovery",
["Star of Mystaria"] = "Interface\\Icons\\INV_Enchant_EssenceMagicLarge",
["Stormcaller's Amulet"] = "Interface\\Icons\\INV_Jewelry_Necklace_16",
["Summon Infernal"] = "Interface\\Icons\\Spell_Shadow_SummonInfernal",
["Tabard of the Horde"] = "Interface\\Icons\\INV_Misc_TabardPVP_01",
["Talisman of the Tempest"] = "Interface\\Icons\\INV_Jewelry_Necklace_AhnQiraj_04",
["Talvash's Enhancing Necklace"] = "Interface\\Icons\\INV_Jewelry_Necklace_02",
["The Art of War"] = "Interface\\Icons\\Spell_Holy_Excorcism_02",
["The Eternal Talisman"] = "Interface\\Icons\\INV_Jewelry_Necklace_19",
["The Reaper's Amulet"] = "Interface\\Icons\\INV_Jewelry_Necklace_28Naxxramas",
["Tiny Gordok"] = "Interface\\Icons\\INV_Crown_01",
["Titan"] = "Interface\\Icons\\Ability_Warrior_DefensiveStance",
["Toxic Bloom"] = "Interface\\Icons\\Spell_Nature_NullifyPoison",
["Trauma"] = "Interface\\Icons\\Ability_Warrior_DecisiveStrike",
["Tree of Life"] = "Interface\\Icons\\Spell_Nature_ResistNature",
["Veteran's Lessons"] = "Interface\\Icons\\INV_Misc_Book_11",
["Warsong Battle Tabard"] = "Interface\\Icons\\INV_Shirt_GuildTabard_01",
["Weighted Hammer"] = "Interface\\Icons\\Spell_Holy_SealOfMight",
["Wisp-herder"] = "Interface\\Icons\\Spell_Nature_WispSplode",
["Zul'Gurub Mask"] = "Interface\\Icons\\INV_Mask_02",
}
B.EXTRA_ABILITY_ICONS = EXTRA_ABILITY_ICONS
local LOCALIZED_SPELL_MAP = {
-- Spanish (esES)
["rajar"] = "cleave",
["torbellino"] = "whirlwind",
["rafaga"] = "flurry",
["desenfreno"] = "rampage",
["ejecutar"] = "execute",
["heridas_profundas"] = "deep_wounds",
["golpe_mortal"] = "mortal_strike",
["atronar"] = "thunder_clap",
["grito_de_batalla"] = "battle_shout",
["grito_desmoralizador"] = "demoralizing_shout",
["sed_de_sangre"] = "bloodthirst",
["desgarrar"] = "rend",
["embate_con_escudo"] = "shield_slam",
["ira_sangrienta"] = "bloodrage",
["cargar"] = "charge",
["golpes_de_barrido"] = "sweeping_strikes",
["abrumar"] = "overpower",
["embate"] = "slam",
["seccionar"] = "hamstring",
["muro_de_escudo"] = "shield_wall",
["temeridad"] = "recklessness",
["ira_rabiosa"] = "berserker_rage",
["torbellino_de_acero"] = "bladestorm",
["filotormenta"] = "bladestorm",
["salto_heroico"] = "heroic_leap",
["provocar"] = "taunt",
["desarmar"] = "disarm",
["zurrar"] = "pummel",
["azote_de_escudo"] = "shield_bash",
["interceptar"] = "intercept",
["ola_de_choque"] = "shockwave",
["golpe_heroico"] = "heroic_strike",
["hender_armadura"] = "sunder_armor",
["golpe_de_conmocion"] = "concussion_blow",
["consagracion"] = "consecration",
["exorcismo"] = "exorcism",
["martillo_de_colera"] = "hammer_of_wrath",
["choque_sagrado"] = "holy_shock",
["colera_sagrada"] = "holy_wrath",
["sentencia"] = "judgement",
["martillo_de_justicia"] = "hammer_of_justice",
["luz_sagrada"] = "holy_light",
["escudo_divino"] = "divine_shield",
["escudo_sagrado"] = "holy_shield",
["disparo_automatico"] = "auto_shot",
["disparo_arcano"] = "arcane_shot",
["multidisparo"] = "multi_shot",
["picadura_de_serpiente"] = "serpent_sting",
["salva"] = "volley",
["trampa_explosiva"] = "explosive_trap",
["disparo_de_conmocion"] = "concussive_shot",
["disparo_de_punteria"] = "aimed_shot",
["golpe_siniestro"] = "sinister_strike",
["eviscerar"] = "eviscerate",
["aluvion_de_acero"] = "blade_flurry",
["ruptura"] = "rupture",
["golpe_en_los_rinones"] = "kidney_shot",
["gubia"] = "gouge",
["subidon_de_adrenalina"] = "adrenaline_rush",
["punalada"] = "backstab",
["hacer_picadillo"] = "slice_and_dice",
["bola_de_fuego"] = "fireball",
["descarga_de_escarcha"] = "frostbolt",
["misiles_arcanos"] = "arcane_missiles",
["nueva_de_escarcha"] = "frost_nova",
["deflagracion_arcana"] = "arcane_explosion",
["ventisca"] = "blizzard",
["fogonazo"] = "flamestrike",
["explosion_de_fuego"] = "fire_blast",
["piroexplosion"] = "pyroblast",
["barrera_de_hielo"] = "ice_barrier",
["polimorfia"] = "polymorph",
["castigo"] = "smite",
["palabra_de_sombras_dolor"] = "shadow_word_pain",
["explosion_mental"] = "mind_blast",
["nueva_sagrada"] = "holy_nova",
["palabra_de_poder_escudo"] = "power_word_shield",
["renovar"] = "renew",
["tortura_mental"] = "mind_flay",
["descarga_de_las_sombras"] = "shadow_bolt",
["corrupcion"] = "corruption",
["inmolar"] = "immolate",
["maldicion_de_agonia"] = "curse_of_agony",
["lluvia_de_fuego"] = "rain_of_fire",
["llamas_infernales"] = "hellfire",
["espiral_de_la_muerte"] = "death_coil",
["drenar_vida"] = "drain_life",
["colera"] = "wrath",
["fuego_lunar"] = "moonfire",
["fuego_estelar"] = "starfire",
["huracan"] = "hurricane",
["flagelo"] = "swipe",
["espinas"] = "thorns",
["rejuvenecimiento"] = "rejuvenation",
["recrecimiento"] = "regrowth",
-- German (deDE)
["spalten"] = "cleave",
["wirbelwind"] = "whirlwind",
["donnerknall"] = "thunder_clap",
["toedlicher_stoss"] = "mortal_strike",
["hinrichten"] = "execute",
["demoralisierender_ruf"] = "demoralizing_shout",
["schlachtruf"] = "battle_shout",
["blutdurst"] = "bloodthirst",
["verwunden"] = "rend",
["schildschlag"] = "shield_slam",
["blutrausch"] = "bloodrage",
["sturmangriff"] = "charge",
["toben"] = "rampage",
["schlaghagel"] = "flurry",
["weitreichende_stoesse"] = "sweeping_strikes",
["ueberwaeltigen"] = "overpower",
["zerschmettern"] = "slam",
["kniesehne"] = "hamstring",
["schildwall"] = "shield_wall",
["tollkuehnheit"] = "recklessness",
["tiefe_wunden"] = "deep_wounds",
["klingensturm"] = "bladestorm",
["heldenhafter_stoss"] = "heroic_strike",
["ruestung_zerreissen"] = "sunder_armor",
["erschuetternder_schlag"] = "concussion_blow",
["weihe"] = "consecration",
["automatischer_schuss"] = "auto_shot",
["finsterer_stoss"] = "sinister_strike",
["ausweiden"] = "eviscerate",
["feuerball"] = "fireball",
["frostblitz"] = "frostbolt",
["schattenblitz"] = "shadow_bolt",
["verderbnis"] = "corruption",
["zorn"] = "wrath",
["mondfeuer"] = "moonfire",
}
B.LOCALIZED_SPELL_MAP = LOCALIZED_SPELL_MAP
local scannedSpellbook = {}
local scannedTalents = {}
local lastSpellScan = 0
local function ScanClientSpells()
local now = (type(GetTime) == "function" and GetTime()) or 0
if now - lastSpellScan < 2 and lastSpellScan > 0 then return end
lastSpellScan = now
if type(GetSpellName) == "function" and type(GetSpellTexture) == "function" then
local book = BOOKTYPE_SPELL or "spell"
local i = 1
while true do
local name = GetSpellName(i, book)
if not name then break end
local tex = GetSpellTexture(i, book)
if tex and tex ~= "" then
scannedSpellbook[name] = tex
local norm = CoreNormalize(name)
if norm ~= "" then scannedSpellbook[norm] = tex end
end
i = i + 1
end
end
if type(GetNumTalentTabs) == "function" and type(GetNumTalents) == "function" and type(GetTalentInfo) == "function" then
local numTabs = GetNumTalentTabs() or 0
for tab = 1, numTabs do
local numTalents = GetNumTalents(tab) or 0
for t = 1, numTalents do
local tName, tTex = GetTalentInfo(tab, t)
if tName and tTex and tTex ~= "" then
scannedTalents[tName] = tTex
local norm = CoreNormalize(tName)
if norm ~= "" then scannedTalents[norm] = tTex end
end
end
end
end
end
local PROC_CAST = {
["Pyroclasm"] = { "Blast Wave" },
["Hot Streak"] = { "Pyroblast" },
["Arcane Concentration"] = { "Arcane Explosion" },
["Shadowy Apparitions"] = { "Mind Blast" },
["Maelstrom Weapon"] = { "Chain Lightning" },
["Lightning Overload"] = { "Lightning Bolt", "Chain Lightning" },
["Windfury"] = { "Lightning Bolt", "Earth Shock", "Frost Shock" },
["Elemental Mastery"] = { "Chain Lightning" },
["Rampage"] = { "Whirlwind" },
["Flurry"] = { "Whirlwind", "Bloodthirst" },
["Bladestorm"] = { "Whirlwind" },
["Last Stand"] = { "Shield Slam" },
["Shockwave"] = { "Shield Slam" },
["Daybreak"] = { "Holy Wrath" },
["Hallowed Ground"] = { "Consecration" },
["Divine Intervention"] = { "Consecration" },
["The Art of War"] = { "Exorcism" },
["Frenzy"] = { "Multi-Shot" },
["Rapid Fire"] = { "Aimed Shot" },
["Counterattack"] = { "Explosive Trap" },
["Explosive Ammunition"] = { "Auto Shot", "Multi-Shot" },
["Mutilate"] = { "Sinister Strike", "Backstab" },
["Riposte"] = { "Ghostly Strike" },
["Killing Spree"] = { "Sinister Strike" },
["Blade Flurry"] = { "Sinister Strike", "Eviscerate" },
["Preparation"] = { "Gouge" },
["Shadow Dance"] = { "Backstab", "Eviscerate" },
["Chastise"] = { "Holy Nova" },
["Nightfall"] = { "Shadow Bolt" },
["Shadow Cleave"] = { "Shadow Bolt" },
["Conflagrate"] = { "Shadow Bolt", "Searing Pain" },
["Splitting Ice"] = { "Frostbolt" },
["Omen of Clarity"] = { "Starfire" },
["Starfall"] = { "Starfire" },
["Leader of the Pack"] = { "Swipe" },
["Nature's Grasp"] = { "Entangling Roots" },
["Sweeping Strikes"] = { "Cleave", "Mortal Strike", "Execute" },
}
local carriedItemIcons = {}
local lastCarriedScan = 0
local function ScanCarriedItems()
local now = (type(GetTime) == "function" and GetTime()) or 0
if now - lastCarriedScan < 1 and lastCarriedScan > 0 then return end
lastCarriedScan = now
if type(GetInventoryItemLink) == "function" and type(GetInventoryItemTexture) == "function" then
for slot = 1, 19 do
local link = GetInventoryItemLink("player", slot)
local tex = GetInventoryItemTexture("player", slot)
if link and tex and tex ~= "" then
local _, _, name = string.find(link, "%[(.+)%]")
if name then
carriedItemIcons[name] = tex
local norm = CoreNormalize(name)
if norm ~= "" then carriedItemIcons[norm] = tex end
end
end
end
end
if type(GetContainerNumSlots) == "function" and type(GetContainerItemLink) == "function" and type(GetContainerItemInfo) == "function" then
for bag = 0, 4 do
local numSlots = GetContainerNumSlots(bag) or 0
for slot = 1, numSlots do
local link = GetContainerItemLink(bag, slot)
local tex = GetContainerItemInfo(bag, slot)
if link and tex and tex ~= "" then
local _, _, name = string.find(link, "%[(.+)%]")
if name then
carriedItemIcons[name] = tex
local norm = CoreNormalize(name)
if norm ~= "" then carriedItemIcons[norm] = tex end
end
end
end
end
end