Small bug fix and refactor
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
-- TICKER_500
|
-- TICKER_500
|
||||||
function(e)
|
function(e)
|
||||||
if ActiveSet == nil then
|
if ActiveSet == nil then
|
||||||
ActiveSet = Spells[UnitClass("player")]
|
ActiveSet = Cooldowns[UnitClass("player")]
|
||||||
|
if ActiveSet == nil then
|
||||||
|
ActiveSet = {}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
for _, cooldown in ipairs(ActiveSet) do
|
for _, cooldown in ipairs(ActiveSet) do
|
||||||
if aura_env.debug then print(string.format("Calling update on %s", cooldown.name)) end
|
if aura_env.debug then print(string.format("Calling update on %s", cooldown.name)) end
|
||||||
|
@@ -25,7 +25,7 @@ BaseCooldown = {
|
|||||||
if playbackSpeed == nil then
|
if playbackSpeed == nil then
|
||||||
self.filename = string.format("1x\\%s", self.filename)
|
self.filename = string.format("1x\\%s", self.filename)
|
||||||
else
|
else
|
||||||
self.filename = string.format("%dx\\%s", playbackSpeed, self.filename)
|
self.filename = string.format("%.1fx\\%s", playbackSpeed, self.filename)
|
||||||
end
|
end
|
||||||
if aura_env.debug then print(string.format("Created BaseCooldown with filename %s", self.filename)) end
|
if aura_env.debug then print(string.format("Created BaseCooldown with filename %s", self.filename)) end
|
||||||
self.isOnCooldown = false
|
self.isOnCooldown = false
|
||||||
@@ -171,7 +171,7 @@ Buff = {
|
|||||||
ActiveSet = nil
|
ActiveSet = nil
|
||||||
|
|
||||||
---@type table<string, table<BaseCooldown>>
|
---@type table<string, table<BaseCooldown>>
|
||||||
Spells = {
|
Cooldowns = {
|
||||||
["Warrior"] = {
|
["Warrior"] = {
|
||||||
Spell.new(107574, "Avatar", 1.6),
|
Spell.new(107574, "Avatar", 1.6),
|
||||||
Spell.new(1719, "Battle Cry", 1.6),
|
Spell.new(1719, "Battle Cry", 1.6),
|
||||||
|
Reference in New Issue
Block a user