-
Notifications
You must be signed in to change notification settings - Fork 3
/
Pull Timer.lua
86 lines (75 loc) · 2.33 KB
/
Pull Timer.lua
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
local pullTimerRegistration = C_ChatInfo.IsAddonMessagePrefixRegistered("D5WC")
if not pullTimerRegistration then C_ChatInfo.RegisterAddonMessagePrefix("D5WC") end
aura_env.Prepull = {}
aura_env.ShowWithCombat = function(auras, pullTimerDuration, timeUntilCombat)
for time,spellId in pairs(aura_env.Prepull) do
local duration = pullTimerDuration + time
auras[time] = {
show = pullTimerDuration ~= 0 and pullTimerDuration > -time,
changed = true,
progressType = "timed",
duration = duration,
expirationTime = GetTime() + duration,
autoHide = true,
index = time,
icon = GetSpellTexture(spellId)
}
end
if aura_env.Potion then
local time = timeUntilCombat - pullTimerDuration - 1
local duration = pullTimerDuration + time
auras[99] = {
show = pullTimerDuration ~= 0 and pullTimerDuration > -time,
changed = true,
progressType = "timed",
duration = duration,
expirationTime = GetTime() + duration,
autoHide = true,
index = time,
icon = GetSpellTexture(aura_env.Potion)
}
end
end
aura_env.Show = function(auras, pullTimerDuration)
aura_env.ShowWithCombat(auras, pullTimerDuration, pullTimerDuration)
end
aura_env.Spells = {
BloodTap = 45529,
RaiseDead = 46584,
EmpowerRuneWeapon = 47568,
UnbreakableArmor = 51271,
HornOfWinter = 57623,
GCD = 61304,
FrostFever = 55095,
BloodPlague = 55078,
KillingMachine = 51124,
FreezingFog = 59052,
IcyTouch = 49909,
FrostStrike = 55268,
PlagueStrike = 49921,
Obliterate = 51425,
HowlingBlast = 51411,
Pestilence = 50842,
BloodStrike = 49930,
BloodBoil = 49941,
PotionOfSpeed = 53908,
IndestructiblePotion = 53762,
Berserking = 26297,
Strangulate = 47476,
Gloves = 54758,
SaroniteBomb = 56350,
Sapper = 56488,
DeathAndDecay = 49938,
ArmyOfTheDead = 42650,
Desolation = 66803,
SummonGargoyle = 49206,
GhoulFrenzy = 63560,
ScourgeStrike = 55271,
RuneStrike = 56815,
DeathStrike = 49998,
DeathCoil = 47541,
UnholyFrenzy = 49016,
FrostPresence = 48263,
UnholyPresence = 48265,
BloodPresence = 48266,
}