Add channelDinger
Plays a ding when semi final tick of a channel ticks
This commit is contained in:
14
FreshShit/ChannelDinger/init.lua
Normal file
14
FreshShit/ChannelDinger/init.lua
Normal 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
|
||||
Reference in New Issue
Block a user