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