Hi im trying to make a simple casting bar with TSU to detect boss casts in an encounter. At the moment Im just testing spell cast with myself because for some reason I cant get the bar to show the progress or duration
if event == "COMBAT_LOG_EVENT_UNFILTERED" and arg2 =="SPELL_CAST_START" then
local spell, _, _, _, startTime, endTime = UnitCastingInfo("player")
allstates[arg5] = {
changed = true,
show = true,
progressType = "timed",
value = startTime,
total = endTime,
--target = target,
name=spell,
autoHide = true,
index = 3
}
return true
end
end