Hi! I play fire mage and used a text weak aura to show SKB & Pryo remaining time before you can start recasting, using gethaste and some other text. I was wondering if someone could do something similar for Madness of the Azj'aqir? The issue I have is the cast time gets reduced by 0.5 sec if you have the buff active, and if blasphemy is active then the cast time is reduced by 50% so dont know how to write this / amend the code. The mage code is:
function(expirationTime, duration, progress, formatedDuration, name, icon, stacks)
local now = GetTime()
local getHaste = GetHaste()*0.01+1
local pyroCast = 4.5/getHaste
local procDur = expirationTime-now--progress
local remainDur = procDur - pyroCast
if stacks == 2 then pyroCast = (9/getHaste)
remainDur = procDur - pyroCast
end
if (stacks == 1 and (remainDur < 0)) then remainDur = "LATE"
return remainDur
end
if (((procDur > (4.5/getHaste)) and (procDur < (9/getHaste)) and stacks == 2)) then remainDur = "ONE"
return remainDur
end
if ((remainDur < 0) and stacks == 2) then remainDur = "LATE"
return remainDur
end
return ("%.1f"):format(remainDur)
end