Add channelDinger

Plays a ding when semi final tick of a channel ticks
This commit is contained in:
2024-08-16 22:29:08 +02:00
parent 4fd6cec919
commit 77f1ac5d7a
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
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