15 lines
410 B
Lua
15 lines
410 B
Lua
aura_env.timer = 0
|
|
aura_env.totalTicks = 5
|
|
aura_env.player = UnitGUID("player")
|
|
|
|
function aura_env.EstimateCastTime()
|
|
local haste = GetCombatRatingBonus(20)
|
|
-- 6 is the base cast time of drain soul
|
|
return 6 / (1 + haste / 100)
|
|
end
|
|
|
|
function aura_env.EstimateSemiFinalTick()
|
|
local castTime = aura_env.EstimateCastTime()
|
|
return (castTime / (aura_env.totalTicks)) * aura_env.totalTicks - 1
|
|
end
|