Code format
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user