This will track your current Ox Statue health as well as it's remaining duration
==============

^1^T^SUnit^SBlack~`of~`Statue ^SType^Sdynamicbar ^SConditions^T ^N1^T ^SType^SICON ^SIcon^STMW:icon:1RLNZ6Sc2eoq ^t^Sn^N1 ^t^SStackMin^N1 ^SDurationMinEnabled^B ^SEvents^T ^N1^T ^SType^SLua ^SLua^S--~`Dave~`Tracker~J local~`icon~`=~`...~J ~J local~`OX_ID~`=~`115315~J local~`guid~J local~`health~`=~`0~J ~J ~J TMW_ST:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED",~`function()~J ~`~`~`~`~`~`~`~`local~`params~`=~`{CombatLogGetCurrentEventInfo()}~J ~`~`~`~`~`~`~`~`~J ~`~`~`~`~`~`~`~`local~`spellid~`=~`params[12]~J ~`~`~`~`~`~`~`~`local~`target~`~`=~`params[8]~J ~`~`~`~`~`~`~`~`local~`event~`~`~`=~`params[2]~J ~`~`~`~`~`~`~`~`local~`damage~`~`=~`params[15]~J ~`~`~`~`~`~`~`~`~J ~`~`~`~`~`~`~`~`if~`(string.match(event,"_SUMMON"))~`then~J ~`~`~`~`~`~`~`~`~`~`~`~`if~`(spellid~`==~`OX_ID)~`then~J ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`guid~`~`~`=~`target~J ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`health~`=~`UnitHealthMax("player")~`/~`2~J ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~J ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`icon:setMaxValue(health)~J ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`icon:setCurrentValue(health)~J ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`return~J ~`~`~`~`~`~`~`~`~`~`~`~`end~J ~`~`~`~`~`~`~`~`end~J ~`~`~`~`~`~`~`~`~J ~`~`~`~`~`~`~`~`if~`(string.match(event,"_DAMAGE")~`and~`target~`==~`guid~`and~`damage)~`then~J ~`~`~`~`~`~`~`~`~`~`~`~`health~`=~`health~`-~`damage~J ~`~`~`~`~`~`~`~`~`~`~`~`if~`(health~`<~`0)~`then~`health~`=~`0~`end~J ~`~`~`~`~`~`~`~`~`~`~`~`~J ~`~`~`~`~`~`~`~`~`~`~`~`icon:setCurrentValue(health)~J ~`~`~`~`~`~`~`~`~`~`~`~`return~J ~`~`~`~`~`~`~`~`end~J end) ^SEvent^SOnEventsRestored ^t^Sn^N1 ^t^SSettingsPerView^T ^Sbarv^T ^STexts^T ^N1^S[Duration("TMW:icon:1RLNZ6Sc2eoq"):TMWFormatDuration] ^N2^S[(Value~`/~`ValueMax~`*~`100):Round(1)]%~` ^t^t^Sbar^T ^STexts^T ^N1^S[Duration("TMW:icon:1RLNZ6Sc2eoq"):TMWFormatDuration] ^N2^S[(Value~`/~`ValueMax~`*~`100):Round(1)]%~` ^t^t^t^SEnabled^B ^SCustomTex^S115315 ^SStates^T ^N1^T ^t^N3^T ^t^N4^T ^t^t^SDurationMin^N1 ^t^N85403^S~`~| ^Sicon^^