-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpellData_Hunter.lua
More file actions
276 lines (259 loc) · 10.2 KB
/
Copy pathSpellData_Hunter.lua
File metadata and controls
276 lines (259 loc) · 10.2 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
local ADDON_NAME, ns = ...
-------------------------------------------------------------------------------
-- Hunter Spell Data - TBC Anniversary (2.5.5)
-- Source of truth: Wowhead TBC Classic
-------------------------------------------------------------------------------
-- Coefficient policy (TBC Classic 2.5.x):
-- Authoritative source: Wowhead TBC Classic (https://www.wowhead.com/tbc/),
-- per AGENTS.md. Values are stored as TOTAL spell-power coefficients consumed
-- verbatim by the engine. The engine does NOT recompute or apply additional
-- AoE/penalty multipliers at runtime.
--
-- Per-tick vs total: Wowhead's `SP mod` field on periodic effects is the
-- per-tick coefficient. The engine treats `coefficient` (and `dotCoefficient`
-- on hybrids) as TOTAL across the full duration, so periodic values stored
-- here are `SP_mod * numTicks`. For spells whose periodic damage is split
-- onto a trigger sub-spell (e.g. Arcane Missiles), the per-tick figure is
-- harvested from the trigger row, not the parent.
--
-- Per-rank overrides: a `coefficient` (or `directCoefficient` /
-- `dotCoefficient`) field on a per-rank table entry overrides the spell-level
-- value. This is required for sub-cap-level penalty ranks where Wowhead
-- reports a lower SP mod than the top-rank flat value.
--
-- Always cite the spell URL when adding or correcting entries:
-- https://www.wowhead.com/tbc/spell=<id>
-------------------------------------------------------------------------------
local SCHOOL_PHYSICAL = ns.SCHOOL_PHYSICAL
local SCHOOL_ARCANE = ns.SCHOOL_ARCANE
local SCHOOL_NATURE = ns.SCHOOL_NATURE
local SCHOOL_FIRE = ns.SCHOOL_FIRE
local SpellData = {}
-------------------------------------------------------------------------------
-- DIRECT SHOTS
-------------------------------------------------------------------------------
-- Arcane Shot (instant, Arcane, 15% RAP coefficient, ignores armor via school)
SpellData[3044] = {
name = "Arcane Shot",
school = SCHOOL_ARCANE,
coefficient = 0.15,
castTime = 0,
canCrit = true,
isDot = false,
isChanneled = false,
isAoe = false,
spellType = "direct",
scalingType = "ranged",
ranks = {
[1] = { spellID = 3044, minDmg = 13, maxDmg = 13, level = 6 },
[2] = { spellID = 14281, minDmg = 21, maxDmg = 21, level = 12 },
[3] = { spellID = 14282, minDmg = 33, maxDmg = 33, level = 20 },
[4] = { spellID = 14283, minDmg = 59, maxDmg = 59, level = 28 },
[5] = { spellID = 14284, minDmg = 83, maxDmg = 83, level = 36 },
[6] = { spellID = 14285, minDmg = 115, maxDmg = 115, level = 44 },
[7] = { spellID = 14286, minDmg = 145, maxDmg = 145, level = 52 },
[8] = { spellID = 14287, minDmg = 183, maxDmg = 183, level = 60 },
[9] = { spellID = 27019, minDmg = 273, maxDmg = 273, level = 70 },
},
}
-- Steady Shot (1.5s cast, Physical, 20% RAP + weapon damage)
-- TBC formula: 150 + avgWeaponDmg + 0.2 * RAP
SpellData[34120] = {
name = "Steady Shot",
school = SCHOOL_PHYSICAL,
coefficient = 0.20,
castTime = 1.5,
canCrit = true,
isDot = false,
isChanneled = false,
isAoe = false,
spellType = "direct",
scalingType = "ranged",
weaponDamage = true,
ranks = {
[1] = { spellID = 34120, minDmg = 150, maxDmg = 150, level = 62 },
},
}
-- Multi-Shot: instant 3-target ranged. RAP coefficient 0.20 total per target
-- (TBC convention; Wowhead does not expose RAP coefficients).
SpellData[2643] = {
name = "Multi-Shot",
school = SCHOOL_PHYSICAL,
coefficient = 0.20,
castTime = 0.5,
canCrit = true,
isDot = false,
isChanneled = false,
isAoe = true,
spellType = "direct",
scalingType = "ranged",
ranks = {
[1] = { spellID = 2643, minDmg = 0, maxDmg = 0, level = 18 },
[2] = { spellID = 14288, minDmg = 40, maxDmg = 40, level = 30 },
[3] = { spellID = 14289, minDmg = 80, maxDmg = 80, level = 42 },
[4] = { spellID = 14290, minDmg = 120, maxDmg = 120, level = 54 },
[5] = { spellID = 25294, minDmg = 150, maxDmg = 150, level = 62 },
[6] = { spellID = 27021, minDmg = 205, maxDmg = 205, level = 70 },
},
}
-- Aimed Shot (3.0s cast, Physical, 20% RAP + weapon damage)
SpellData[19434] = {
name = "Aimed Shot",
school = SCHOOL_PHYSICAL,
coefficient = 0.20,
castTime = 3.0,
canCrit = true,
isDot = false,
isChanneled = false,
isAoe = false,
spellType = "direct",
scalingType = "ranged",
weaponDamage = true,
ranks = {
[1] = { spellID = 19434, minDmg = 70, maxDmg = 70, level = 20 },
[2] = { spellID = 20900, minDmg = 125, maxDmg = 125, level = 28 },
[3] = { spellID = 20901, minDmg = 200, maxDmg = 200, level = 36 },
[4] = { spellID = 20902, minDmg = 330, maxDmg = 330, level = 44 },
[5] = { spellID = 20903, minDmg = 370, maxDmg = 370, level = 52 },
[6] = { spellID = 20904, minDmg = 460, maxDmg = 460, level = 60 },
[7] = { spellID = 27065, minDmg = 600, maxDmg = 600, level = 70 },
},
}
-- Silencing Shot (instant, Physical, 50% weapon damage)
SpellData[34490] = {
name = "Silencing Shot",
school = SCHOOL_PHYSICAL,
coefficient = 0.00,
castTime = 0,
canCrit = true,
isDot = false,
isChanneled = false,
isAoe = false,
spellType = "direct",
scalingType = "ranged",
weaponDamage = true,
weaponMultiplier = 0.50,
ranks = {
[1] = { spellID = 34490, minDmg = 0, maxDmg = 0, level = 50 },
},
}
-------------------------------------------------------------------------------
-- DOTS
-------------------------------------------------------------------------------
-- Serpent Sting (instant, Nature, 10% RAP total, 15s/5 ticks, no crit)
SpellData[1978] = {
name = "Serpent Sting",
school = SCHOOL_NATURE,
coefficient = 0.10,
castTime = 0,
canCrit = false,
isDot = true,
isChanneled = false,
isAoe = false,
spellType = "dot",
scalingType = "ranged",
duration = 15,
numTicks = 5,
ranks = {
[1] = { spellID = 1978, totalDmg = 20, level = 4 },
[2] = { spellID = 13549, totalDmg = 40, level = 10 },
[3] = { spellID = 13550, totalDmg = 80, level = 18 },
[4] = { spellID = 13551, totalDmg = 140, level = 26 },
[5] = { spellID = 13552, totalDmg = 210, level = 34 },
[6] = { spellID = 13553, totalDmg = 290, level = 42 },
[7] = { spellID = 13554, totalDmg = 385, level = 50 },
[8] = { spellID = 13555, totalDmg = 490, level = 58 },
[9] = { spellID = 25295, totalDmg = 660, level = 63 },
[10] = { spellID = 27016, totalDmg = 990, level = 70 },
},
}
-- Immolation Trap (instant, Fire, 10% RAP, 15s/5 ticks, no crit)
SpellData[13795] = {
name = "Immolation Trap",
school = SCHOOL_FIRE,
coefficient = 0.10,
castTime = 0,
canCrit = false,
isDot = true,
isChanneled = false,
isAoe = false,
spellType = "dot",
scalingType = "ranged",
duration = 15,
numTicks = 5,
ranks = {
[1] = { spellID = 13795, totalDmg = 105, level = 16 },
[2] = { spellID = 14302, totalDmg = 215, level = 26 },
[3] = { spellID = 14303, totalDmg = 340, level = 36 },
[4] = { spellID = 14304, totalDmg = 510, level = 46 },
[5] = { spellID = 14305, totalDmg = 690, level = 56 },
[6] = { spellID = 27023, totalDmg = 1230, level = 68 },
},
}
-------------------------------------------------------------------------------
-- CHANNELS
-------------------------------------------------------------------------------
-- Volley - spell ID 1510
-- TBC RAP coefficient: 0.0837 per tick x 6 ticks (1s/tick over 6s channel).
-- Source: Blizzard Patch 3.2.2 patch notes ("The attack power coefficient has
-- been increased from 0.0586 to 0.0837. Base points did not change."), which
-- reverted the 3.0.8 -30% nerf and restored the original TBC 2.x value.
-- See: https://warcraft.wiki.gg/wiki/Patch_3.2.2 (Hunter section)
-- https://warcraft.wiki.gg/wiki/Patch_3.0.8 (Hunter, Volley nerf -30%)
-- https://warcraft.wiki.gg/wiki/Patch_2.2.0 (Hunter, RAP scaling introduced)
-- https://warcraft.wiki.gg/wiki/Volley (Wrath Classic tooltip displays
-- "8.37% of Ranged attack power + 52" per tick)
-- Volley is the only Hunter ability in TBC with a stored RAP spell coefficient;
-- ranged shots scale via the standard weapon-damage + normalized-AP formula.
SpellData[1510] = {
name = "Volley",
school = SCHOOL_ARCANE,
coefficient = 0.0837,
castTime = 0,
canCrit = false,
isDot = false,
isChanneled = true,
isAoe = true,
spellType = "channel",
scalingType = "ranged",
duration = 6,
numTicks = 6,
ranks = {
[1] = { spellID = 1510, effectID = 42243, totalDmg = 120, level = 40 },
[2] = { spellID = 14294, effectID = 42244, totalDmg = 192, level = 50 },
[3] = { spellID = 14295, effectID = 42245, totalDmg = 264, level = 58 },
[4] = { spellID = 27022, effectID = 42234, totalDmg = 450, level = 69 },
},
}
-------------------------------------------------------------------------------
-- HYBRID (Direct + DoT)
-------------------------------------------------------------------------------
-- Explosive Trap (Fire, instant, blast + 20s DoT, 10% RAP on DoT)
SpellData[13813] = {
name = "Explosive Trap",
school = SCHOOL_FIRE,
coefficient = 0.10,
directCoefficient = 0.00,
dotCoefficient = 0.10,
castTime = 0,
canCrit = false,
isDot = true,
isChanneled = false,
isAoe = true,
spellType = "hybrid",
scalingType = "ranged",
duration = 20,
numTicks = 10,
ranks = {
[1] = { spellID = 13813, minDmg = 52, maxDmg = 70, dotDmg = 80, level = 20 },
[2] = { spellID = 14316, minDmg = 84, maxDmg = 112, dotDmg = 160, level = 30 },
[3] = { spellID = 14317, minDmg = 135, maxDmg = 167, dotDmg = 240, level = 40 },
[4] = { spellID = 27025, minDmg = 256, maxDmg = 338, dotDmg = 520, level = 68 },
},
}
-------------------------------------------------------------------------------
-- Merge into global SpellData table
-------------------------------------------------------------------------------
for spellID, data in pairs(SpellData) do
ns.SpellData[spellID] = data
end