Unless Blizzard has changed their APIs significantly from the last time I dabbled, I believe this would actually be impossible.Is it possible in WA or by creating an addon that tracks who has the debuff, and is then clickable so that you would focus that target?
For starters, enemies generally do not have unique IDs. Imagine, for example, that you wanted to write a macro to create a focus target on demand. You would have something like:
Code: Select all
/target SomeMob
/focus
The other, bigger issue is that Blizzard does (or at least did) prohibit certain code actions once you're in combat, for a variety of reasons. There are certain API calls that are effectively locked in combat. One of those is setting the attributes that determine target and focus (in the API, the SetAttributes call is flagged as "nocombat", which is Blizzard's internal property for designating a call that cannot be made in combat).
All of this is to say—while the actual code to change, say, Tidy Plates to allow you to create a focus frame on click for a mob debuffed with "Mark of Doom" is relatively short & simple (maybe 3 lines of code), Blizzard specifically forbids some of that code from running while in combat. In short, I do not believe an addon can create a new frame (focus or otherwise) on-click while in combat. The best you can do is have Tidy Frames show which mob(s) has the debuff, have a WA to shout at you when it procs anywhere, and manually adjust your target accordingly.
Update: I dug into the API and confirmed that setting these attributes are still locked in combat. Blizzard made this change primarily to prevent bots from being able to automate combat actions. So indeed, this is impossible. You'll need to track the debuff via Tidy Plates or the like, notify yourself via WA or the like, and then manually adjust targeting and/or focus.