I want to play a sound when Scarlet adaptation reaches 100% charge.
From reading other WAs I can see that the text percentage is updated like so:
function()
if aura_env.state and aura_env.state.tooltip1 then
local toolt = aura_env.state.tooltip1
local max = ""..GetSpellBonusDamage(7)*2.254
return (toolt/max *100),max,true
else
return 0
end
end
But I'm not sure I understand how to use this in the context of a trigger to play a sound.