Okay so, to start things off, i've been using RDX since vanilla, but my skills only go as far as creating simple raidframes and adding debuffs, raid icons and such and as a result, I could use some help now.
What i'm looking for is a way to change the color of a debuff icon or a specific frame based on how long the debuff have been active on a target.
Example:
Wrack being active on a target for 0-9 seconds = Green
Wrack being active on a target for 10-13 seconds = Red
Wrack being active on a target 14+ seconds = Black
I'll also explain how the debuff works to help people better understand what i'm trying to do.
Wrack last for 60 seconds, dealing increasing amounts of dmg the longer it stays on a target. Dispelling it resets the damage but makes it jump to 2 new targets with whatever duration is left on the debuff
The number of targets afflicted by wrack usually goes something like (1-2-4-8-16), so having color codes to indicate how long a target have been afflicted will help determine the order to dispel in
Just so we're all on the same page, i'm not interested in how much time is left on the debuff, but rather how long time a specific target have been afflicted by it
Any help would be appreciated really