Originally Posted by Vremon
buff.Stealable:SetShown(data.duration >= 10 and (data.expirationTime - GetTime()) < 20 );
|
For example, target something that has 20+ seconds remaining on the buff. It may or may not update the highlight immediately when the duration falls below 20 seconds. This isn't "working" when it only updates sometimes.
You're going to need either an OnUpdate script or a C_Timer loop periodically calling the code to get reliable updates when filtering by remaining time.