Originally Posted by Seerah
LuaTexts can be set to run (a slightly throttled, iirc) OnUpdate if you check the "frequent updates" box.
|
Ohh, nice. In that case, it's just a simple matter of:
Code:
local _, _, threatpct, _, threatvalue = UnitDetailedThreatSituation(unitid, mobunitid)
if threatvalue then
return "|cffff0000%d|r", floor(threatpct)
else
return ""
end