Added second bar to tell cooldown
This commit is contained in:
10
NewAge/NullBarrier/CLEU2.lua
Normal file
10
NewAge/NullBarrier/CLEU2.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
function()
|
||||
if select(2, CombatLogGetCurrentEventInfo()) == "SPELL_AURA_APPLIED" then
|
||||
local target = select(5, CombatLogGetCurrentEventInfo())
|
||||
local buff = select(13, CombatLogGetCurrentEventInfo())
|
||||
if target == UnitName("player") and aura_env.buffs[buff] ~= nil then
|
||||
aura_env.timeApplied = GetTime()
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
3
NewAge/NullBarrier/CustomDuration2.lua
Normal file
3
NewAge/NullBarrier/CustomDuration2.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
function()
|
||||
return 15, aura_env.timeApplied + 15
|
||||
end
|
4
NewAge/NullBarrier/INIT2.lua
Normal file
4
NewAge/NullBarrier/INIT2.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
aura_env.buffs = {
|
||||
["Null Barrier"] = 1,
|
||||
}
|
||||
aura_env.timeApplied = 0
|
Reference in New Issue
Block a user