Added second bar to tell cooldown

This commit is contained in:
PhatDave
2021-11-12 17:03:56 +01:00
parent e4e33c8e1a
commit 3af5a43390
3 changed files with 17 additions and 0 deletions

View 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

View File

@@ -0,0 +1,3 @@
function()
return 15, aura_env.timeApplied + 15
end

View File

@@ -0,0 +1,4 @@
aura_env.buffs = {
["Null Barrier"] = 1,
}
aura_env.timeApplied = 0