Bar now fully functional
This commit is contained in:
@@ -3,7 +3,7 @@ function()
|
||||
local target = select(5, CombatLogGetCurrentEventInfo())
|
||||
local buff = select(13, CombatLogGetCurrentEventInfo())
|
||||
if target == UnitName("player") and aura_env.buffs[buff] ~= nil then
|
||||
aura_env.max = select(16, CombatLogGetCurrentEventInfo())
|
||||
aura_env.max = aura_env.GetAbsorbs()
|
||||
end
|
||||
end
|
||||
return true
|
||||
|
3
NewAge/NullBarrier/CustomDuration.lua
Normal file
3
NewAge/NullBarrier/CustomDuration.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
function()
|
||||
return aura_env.GetAbsorbs(), aura_env.max, 1
|
||||
end
|
@@ -1,4 +1,7 @@
|
||||
aura_env.buffs = {"Null Barrier", "Empowered Null Barrier"}
|
||||
aura_env.buffs = {
|
||||
["Null Barrier"] = 1,
|
||||
["Empowered Null Barrier"] = 1,
|
||||
}
|
||||
aura_env.max = 0
|
||||
|
||||
aura_env.GetBuff = function(name)
|
||||
@@ -17,8 +20,8 @@ end
|
||||
|
||||
aura_env.GetAbsorbs = function()
|
||||
local abs = 0
|
||||
for k, v in ipairs(aura_env.buffs) do
|
||||
abs = abs + aura_env.GetAbsorb(v)
|
||||
for k, v in pairs(aura_env.buffs) do
|
||||
abs = abs + aura_env.GetAbsorb(k)
|
||||
end
|
||||
return abs
|
||||
end
|
||||
|
Reference in New Issue
Block a user