-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharcanicPulsar.lua
43 lines (33 loc) · 1023 Bytes
/
arcanicPulsar.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
-------------------------------------------------------------------------------
-- trigger (status): UNIT_AURA:player, OPTIONS
function(event, unit)
for i = 1, 40 do
local spellId = select(10, UnitBuff("player", i))
if spellId == nil then
break
end
if spellId == 338825 then
local tooltipSize = select(3, WeakAuras.GetAuraTooltipInfo("player", i))
if aura_env.spent ~= tooltipSize or event == "OPTIONS" then
aura_env.spent = tooltipSize
return true
end
return false
end
end
if aura_env.spent ~= 0 or event == "OPTIONS" then
aura_env.spent = 0
return true
end
return false
end
-------------------------------------------------------------------------------
-- untrigger
function()
return false
end
-------------------------------------------------------------------------------
-- duration
function()
return aura_env.spent, 300, true
end