Code format

This commit is contained in:
2025-05-15 21:19:10 +02:00
parent 4220b4d0bd
commit 635147c29b
7 changed files with 141 additions and 168 deletions

View File

@@ -8,16 +8,12 @@ local CooldownType = {
}
local NullType = CooldownType:New()
NullType.GetActiveInfo = function(self)
return false, 0, 0
end
NullType.GetActiveInfo = function(self) return false, 0, 0 end
local TotemType = CooldownType:New()
TotemType.GetActiveInfo = function(self)
for i = 1, 4 do
local present, name, start, duration = GetTotemInfo(i)
if present and name == self.name then
return true, start, duration
end
if present and name == self.name then return true, start, duration end
end
return false, 0, 0
end
@@ -41,9 +37,7 @@ local Cooldown = {
return start > 0 and duration > aura_env.gcdThreshold, start, duration
end,
GetActiveInfo = function(self)
return self.type:GetActiveInfo()
end
GetActiveInfo = function(self) return self.type:GetActiveInfo() end,
}
aura_env.cooldowns = {