-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdata.lua
More file actions
182 lines (160 loc) · 6.14 KB
/
data.lua
File metadata and controls
182 lines (160 loc) · 6.14 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
local _, addon = ...
local journalIDs = {
-- 5.0 Pandaria
[132205] = {322, 691}, -- Sha of Anger
[132206] = {322, 725}, -- Salyis' Warband (Galleon)
[136381] = {322, 814}, -- Nalak, The Storm God
[137554] = {322, 826}, -- Oondasta
[148317] = {322, 857}, -- Celestials (also encounterIDs 858, 859 and 860)
[148316] = {322, 861}, -- Ordos, Fire-God of the Yaungol
-- 5.0 Mogu'Shan Vaults
[125144] = {317, 679}, -- The Stone Guard
[132189] = {317, 689}, -- Feng the Accursed
[132190] = {317, 682}, -- Gara'jal the Spiritbinder
[132191] = {317, 687}, -- The Spirit Kings
[132192] = {317, 726}, -- Elegon
[132193] = {317, 677}, -- Will of the Emperor
-- 5.0 Heart of Fear
[132194] = {330, 745}, -- Imperial Vizier Zor'lok
[132195] = {330, 744}, -- Blade Lord Tay'ak
[132196] = {330, 713}, -- Garalon
[132197] = {330, 741}, -- Wind Lord Mel'jarak
[132198] = {330, 737}, -- Amber-Shaper Un'sok
[132199] = {330, 743}, -- Grand Empress Shek'zeer
-- 5.0 Terrace of Endless Spring
[132200] = {320, 683}, -- Protectors of the Endless
[132204] = {320, 683}, -- Protectors of the Endless (Elite)
[132201] = {320, 742}, -- Tsulong
[132202] = {320, 729}, -- Lei Shi
[132203] = {320, 709}, -- Sha of Fear
-- 5.0 Throne of Thunder
[139674] = {362, 827}, -- Jin'rokh the Breaker
[139677] = {362, 819}, -- Horridon
[139679] = {362, 816}, -- Council of Elders
[139680] = {362, 825}, -- Tortos
[139682] = {362, 821}, -- Magaera
[139684] = {362, 828}, -- Ji'kun, the Ancient Mother
[139686] = {362, 818}, -- Durumu the Forgotten
[139687] = {362, 820}, -- Primordious
[139688] = {362, 824}, -- Dark Animus
[139689] = {362, 817}, -- Iron Qon
[139690] = {362, 829}, -- Twin Consorts (Empyreal Queens)
[139691] = {362, 832}, -- Lei Shen, The Thunder King
[139692] = {362, 831}, -- Ra-den
-- 5.0 Siege of Orgrimmar
[145909] = {369, 852}, -- Immerseus
[145910] = {369, 849}, -- The Fallen Protectors
[145911] = {369, 866}, -- Norushen
[145912] = {369, 867}, -- Sha of Pride
-- Galakras needs special handling
[145914] = {369, 864}, -- Iron Juggernaut
[145915] = {369, 856}, -- Kor'kron Dark Shaman
[145916] = {369, 850}, -- General Nazgrim
[145917] = {369, 846}, -- Malkorok
[145919] = {369, 870}, -- Spoils of Pandaria
[145920] = {369, 851}, -- Thok the Bloodthirsty
[145918] = {369, 865}, -- Siegecrafter Blackfuse
[145921] = {369, 853}, -- Paragons of the Klaxxi
[145922] = {369, 869}, -- Garrosh Hellscream
-- 6.0 Draenor
[178847] = {557, 1291}, -- Drov the Ruiner
[178849] = {557, 1211}, -- Tarina the Ageless
[178851] = {557, 1262}, -- Rukhmar
[188985] = {557, 1452}, -- Supreme Lord Kazzak
-- 6.0 Highmaul
[177521] = {477, 1128}, -- Kargath Bladefist
[177522] = {477, 971}, -- The Butcher
[177523] = {477, 1195}, -- Tectus
[177524] = {477, 1196}, -- Brackenspore
[177525] = {477, 1148}, -- Twin Ogron
[177526] = {477, 1153}, -- Ko'ragh
[177528] = {477, 1197}, -- Imperator Mar'gok
-- 6.0 Blackrock Foundry
[177529] = {457, 1161}, -- Gruul
[177530] = {457, 1202}, -- Oregorger
[177536] = {457, 1122}, -- Beastlord Darmac
[177534] = {457, 1123}, -- Flamebender Ka'graz
[177533] = {457, 1155}, -- Hans'gar and Franzok
[177537] = {457, 1147}, -- Operator Thogar
[177531] = {457, 1154}, -- The Blast Furnace
[177535] = {457, 1162}, -- Kromog
[177538] = {457, 1203}, -- The Iron Maidens
[177539] = {457, 959}, -- Blackhand
-- 6.0 Hellfire Citadel
[188972] = {669, 1426}, -- Hellfire Assault
[188973] = {669, 1425}, -- Iron Reaver
[188974] = {669, 1392}, -- Kormrok
[188975] = {669, 1432}, -- Hellfire High Council
[188976] = {669, 1396}, -- Kilrogg Deadeye
[188977] = {669, 1372}, -- Gorefiend
[188978] = {669, 1433}, -- Shadow-Lord Iskar
[188979] = {669, 1427}, -- Socrethar the Eternal
[188980] = {669, 1391}, -- Fel Lord Zakuun
[188981] = {669, 1447}, -- Xhul'horac
[188982] = {669, 1394}, -- Tyrant Velhari
[188983] = {669, 1395}, -- Mannoroth
[188984] = {669, 1438}, -- Archimonde
-- 6.0 Auchindoun
[190154] = {547, 1185}, -- Vigilant Kaathar
[190155] = {547, 1186}, -- Soulbinder Nyami
[190156] = {547, 1216}, -- Azzakel
[190157] = {547, 1225}, -- Teron'gor
-- 6.0 Upper Blackrock Spire
[190168] = {559, 1226}, -- Orebender Gor'ashan
[190170] = {559, 1227}, -- Kyrak
[190171] = {559, 1228}, -- Commander Tharbek
[190172] = {559, 1229}, -- Ragewing the Untamed
[190173] = {559, 1234}, -- Warlord Zaela
-- 6.0 Shadowmoon Burial Grounds
[190150] = {537, 1139}, -- Sadana Bloodfury
[190151] = {537, 1168}, -- Nhallish
[190152] = {537, 1140}, -- Bonemaw
[190153] = {537, 1160}, -- Ner'zhul
-- 6.0 The Everbloom
[190158] = {556, 1214}, -- Witherbark
[190159] = {556, 1207}, -- Ancient Protectors
[190160] = {556, 1208}, -- Archmage Sol
[190162] = {556, 1209}, -- Xeri'tac
[190163] = {556, 1210}, -- Yalnu
-- 6.0 Grimrail Depot
[190147] = {536, 1138}, -- Rocketspark and Borka
[190148] = {536, 1163}, -- Nitrogg Thundertower
[190149] = {536, 1133}, -- Skylord Tovra
-- 6.0 Iron Docks
[190164] = {558, 1235}, -- Fleshrender Nok'gar
[190165] = {558, 1236}, -- Grimrail Enforcers
[190166] = {558, 1237}, -- Oshir
[190167] = {558, 1238}, -- Skulloc
-- 6.0 Skyreach
[190142] = {476, 965}, -- Ranjit
[190143] = {476, 966}, -- Araknath
[190144] = {476, 967}, -- Rukhran
[190146] = {476, 968}, -- High Sage Viryx
-- 6.0 Bloodmaul Slag Mines
[190138] = {385, 893}, -- Magmolatus
[190139] = {385, 888}, -- Slave Watcher Crushto
[190140] = {385, 887}, -- Roltall
[190141] = {385, 889}, -- Gug'rokk
}
-- the following encounters present different IDs based on client randomness (not entirely sure)
local incorrectJournalEntries = {
-- 5.0
[145913] = {369, 5}, -- Galakras
-- 7.0
[232444] = {786, 9}, -- Grand Magistrix Elisande
}
function addon:OnLogin()
for spellID, data in next, incorrectJournalEntries do
if pcall(EJ_SelectInstance, data[1]) then
journalIDs[spellID] = {data[1], (select(3, EJ_GetEncounterInfoByIndex(data[2])))}
end
end
end
function addon:GetJournalInfoForSpellConfirmation(spellID)
-- this extends the API to also work for earlier expansions
-- it also fixes incorrect data for certain encounters (see above)
if journalIDs[spellID] then
return unpack(journalIDs[spellID])
end
return GetJournalInfoForSpellConfirmation(spellID)
end