-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathGridPlayerSpells.lua
More file actions
200 lines (195 loc) · 7.27 KB
/
Copy pathGridPlayerSpells.lua
File metadata and controls
200 lines (195 loc) · 7.27 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
-- Players Buffs & Debuffs, used by GridDefaults.lua and StatusAuraNewPredictor.lua
local GetSpellName = C_Spell.GetSpellName
Grid2.PlayerBuffs = {
[""] = {
377234, -- Thrill of the Skies
388367, -- Ohn'ahra's Gusts
404464, -- Flight Style: Skyriding
404468, -- Flight Style: Steady
418590, -- Static Charge
427490, -- Ride Along Available
447959, -- Ride Along Active
447960, -- Ride Along Inactive
175222,175219,92725,175220,175218,120954,110660,101291,74245,102667,106664,156426,101293,114108,102664,160900,107988,104267,165824,
115288,87840,90992,60233,65116,109744,165833,176875,109793,74241,74243,165830,106466,107982,59547,102660,53755,79633,105144,109748,
107960,79634,176151,92104,109742,165531,156064,121125,177040,177159,109811,89091,16870,73313,154797,92731,92729,107966,109787,107962,
102659,92730,156079,107948,107947,109802,156423,101185,102435,160793,54861,162919,58984,175439,137452,109774,176974,152175,68992,79471,
59752,175456,109776,79470,79476,162917,162913,162915,104280,60229,109717,5215,74224,176978,175457,109709,133630,91047,128939,
},
["DEATHKNIGHT"] = {
108008,81141,55233,48792,119975,51460,177160,101568,53365,48707,48265,105582,91816,107949,77535,105647,57330,
79638,42650,53748,63560,92184,59052,152279,152280,81340,51271,51124,115989,3714,91821,81256,48778,145629,
194844, 196528, 196545,
},
["DRUID"] = {
474754, -- Symbiotic Relationship
1126, -- Mark of the Wild
774, -- Rejuv
8936, -- Regrowth
33763, -- Lifebloom
48438, -- Wild Growth
155777, -- Germination
165961,22812,124974,16914,81022,81262,783,102352,24858,114282,40120,17057,33891,102547,740,77764,48518,117679,768,105693,132158,
157228,52610,5217,96962,1850,61336,102560,102543,108292,176884,126705,135700,5487,108294,106951,50334,48517,102342,102351,69369,
29166,203407,354704,207386,305497,77761,157982,203554,325748,106898,200389,467,192081,22842,122307,273048,
},
["HUNTER"] = {
260286, -- Hunter Tip of the Spear
136,118455,162537,19577,982,96978,176883,82921,92099,120360,34477,118922,59543,19574,96911,95712,126697,105919,162536, 92124,99621,
126707,108687,156073,5225,35079,1462,109861,19263,109860,126554,164857,148467,203233,54216,272678,248519,53480,90361,212640,264667,
},
["MAGE"] = {
1459, -- Arcane Intellect
205473, -- Mage Icicles
108839,122998,115295,44544,90896,11426,110909,45438,48108,53908,116014,80353,91019,12042,108843,1463,115308,58501,
32612,12472,12051,119415,130,110960,66,1953,165832,157644,126266,60234,113862,55342,105785,48107,156150,475,
},
["MONK"] = {
115175, -- Soothing Mist
119611, -- Renewing Mist
124682, -- Enveloping Mist
450769, -- Aspect of Harmony
124255, -- Stagger
113656,129914,115867,101546,116768,116841,122470,116849,116847,124081,202162,353509,201447,353319,353503,325153,205655,354540,325209,
122278,123715,175395,122783,231633,353937,
},
["PALADIN"] = {
53563, -- Beacon of Light
156322, -- Eternal Flame
156910, -- Beacon of Faith
200025, -- Beacon of Virtue
1244893, -- Beacon of the Savior
-- Long-term Self Buffs
433568, -- Rite of Sanctification
433583, -- Rite of Adjuration
31821,32223,105801,165903,114250,170397,642,107951,59542,148039,132403,85416,126700,156990,165889,31884,165822,105742,25780,89906,
74221,157048,114695,20925,91810,105809,54149,85499,87173,465,31850,23214,107968,26573,73630,84963,126582,498,1044,199507,216328,
216857,223306,6940,246807,210256,1022,204018,204335,228050,86657,86659,212641,337851,393108,184662,184689,
},
["PRIEST"] = {
21562, -- Power Word: Fortitude
-- Disc Priest
17, -- Power Word: Shield
194384, -- Atonement
1253593, -- Void Shield
-- Holy Priest
139, -- Renew
41635, -- Prayer of Mending
77489, -- Echo of Light
47753,73325,65081,1706,81749,81782,79632,152118,47585,15286,586,114255,114908,47788,109964,171130,91147,
27827,123254,105826,64843,32409,90885,10060,81700,33206,64901,45242,111759,165532,64844,121557,91138,
171150,232707,197548,215962,289655,196440,213610,197874,34914,327694,
},
["ROGUE"] = {
2823, -- Deadly Poison
8679, -- Wound Poison
3408, -- Crippling Poison
5761, -- Numbing Poison
315584, -- Instant Poison
381637, -- Atrophic Poison
381664, -- Amplifying Poison
1966,57934,13750,5171,74001,36554,2983,31665,152150,112942,115191,109959,51690,170879,121153,32645,
76577,59628,105864,31224,5277,45182,1784,177161,152151,13877,177038,354494,209754,198368,221630,
},
["SHAMAN"] = {
462854, -- Skyfury
383648, 974, -- Earth Shield
61295, -- Riptide
-- Shaman Imbuements
319773, -- Windfury Weapon
319778, -- Flametongue Weapon
382021, 382022, 382024, -- Earthliving Weapon
457496, 457481, -- Tidecaller's Guard
462757, 462742, -- Thunderstrike Ward
344179, -- Maelstrom Weapon
207400, -- Ancestral Vigor
444490, -- Hydrobubble
173260,105877,32182,546,105821,105869,118291,171114,105779,108281,79206,101289,52127,118522,114052,108280,77762,
31616,176568,118323,53390,16166,114050,2645,171382,105763,173183,108271,5394,73685,61882,173184,192082,8178,
208963,2825,327942,320763,204361,201633,207498,98007,8512,
},
["WARLOCK"] = {
148972,48018,1949,108366,127230,32752,108416,48020,171380,108359,60478,117828,171982,20707,130649,113858,111400,5740,104773,5697,
},
["WARRIOR"] = {
6673, -- Battle Shout
12975, 165640,104423,107574,105914,97463,1719,2565,85739,109780,104510,104509,118779,32216,176876,73320,52437,178858,
46924,71,871,97010,101492,80396,105909,165642,23920,132404,18499,156080,213871,223658,236321,147833,
},
["DEMONHUNTER"] = {
1217607, -- Void Metamorphosis
1225789, -- Void Metamorphosis
1227702, -- Collapsing Star
187827,131347,188499,196555,212800,209426,203819,391159,
},
["EVOKER"] = {
369459, -- Source of Magic
-- Preservation Evoker
355941, -- Dream Breath
363502, -- Dream Flight
364343, -- Echo
366155, -- Reversion
367364, -- Echo Reversion
373267, -- Lifebind
376788, -- Echo Dream Breath
-- Augmentation Evoker
360827, -- Blistering Scales
395152, -- Ebon Might
395296, -- Ebon Might
410089, -- Prescience
410263, -- Inferno's Blessing
410686, -- Symbiotic Bloom
413984, -- Shifting Sands
-- Blessing of the bronze auras
381732, -- Death Knight
381741, -- Demon Hunter
381746, -- Druid
381748, -- Evoker
381749, -- Hunter
381750, -- Mage
381751, -- Monk
381752, -- Paladin
381753, -- Priest
381754, -- Rogue
381756, -- Shaman
381757, -- Warlock
381758, -- Warrior
390386,364342,359816,355936,361509,
},
}
Grid2.PlayerBuffsReverse = {}
Grid2.PlayerDebuffs = {
[""] = {},
["DEATHKNIGHT"] = {},
["DRUID"] = {},
["HUNTER"] = {},
["MAGE"] = {},
["MONK"] = {},
["PALADIN"] = {},
["PRIEST"] = {},
["ROGUE"] = {},
["SHAMAN"] = {},
["WARLOCK"] = {},
["WARRIOR"] = {},
["DEMONHUNTER"] = {},
["EVOKER"] = {},
["MYTHIC+"] = {},
}
function Grid2:GetSimilarPlayerBuffs(spell)
local list = self.PlayerBuffsReverse
for category, spells in pairs(self.PlayerBuffs) do
for i,spellID in ipairs(spells) do
local spellName = GetSpellName(spellID)
if spellName then
local t = list[spellName]
if t==nil then t = {}; list[spellName] = t; end
t[#t+1] = spellID
end
end
end
self.GetSimilarPlayerBuffs = function(self,spell)
local spellName = type(spell)=='number' and GetSpellName(spell) or spell
return self.PlayerBuffsReverse[spellName]
end
return self:GetSimilarPlayerBuffs(spell)
end