Hi, I wanted to create an Aura which shows Combustion (Icon) and it's remaining duration as text inside the icon (White color), but when the Combustion duration is shorter than my current Fireball cast speed + 30ms, the text switches to red.
I thought of making two different auras, one for fireballCastSpeed > combustionDuration and the opposite (+30ms), but I'm stuck on the coding part.
Is giving me unexpected symbol near local. I've tried removing "_" for " " and such, but it didn't work.local name, rank, icon, castingTime, minRange, maxRange, spellID = GetSpellInfo(133)
local fireballCastingTime = castingTime*.001
local _, _, _, _, _, _, expires = UnitBuff(190319)
local combustionRemaining = expires-GetTime()
if fireballCastingTime < combustionRemaining then return true else return false
end
Any advice or help would be appreciated, thanks.