I want my addon to recognize when player's (hostile) target is immune to interrupt effects due to Aura Mastery.
This sounds easy at first, but after looking into it for a while it seems very tricky, if not impossible. Hopefully someone can prove me wrong
Consider this:
Originally Posted by Aura Mastery tooltip
Causes your Concentration Aura to make all affected targets immune to Silence and Interrupt effects and improve the effect of all other auras by 100%. Lasts 6 sec.
|
1. Aura Mastery only provides immunity if used in tandem with Concentration Aura.
2. The Concentration Aura and Aura Mastery must be cast by the same paladin (this is my interpretation of the tooltip at least).
3. UnitCastingInfo // UnitChannelInfo do
not recognize spells cast under Aura Mastery as being uninterruptible (as shown by my own testing)
4. UNIT_SPELLCAST_NOT_INTERRUPTIBLE and UNIT_SPELLCAST_INTERRUPTIBLE do not provide useful information in these cases (as shown by my own testing)
UnitBuff() gives detailed info (so we can check if the Aura Mastery and Concentration Aura come from the same player), but is only available for
unitID's. So we can't get detailed info unless the player has the paladin on focus or is targeting him (are there special unitID's for arena or battleground opponents?)
There's also the question: what happens in a situation where multiple paladins all use Concentration Aura?
Another approach would be using COMBAT_LOG_EVENT_UNFILTERED. Then we are not limited by unitID's, but can't use UnitBuff either. It's possible to track Aura Mastery and Concentration Aura casts on a per-player basis, but there are also holes in this approach (players casting Concentration Aura outside of combat log range).
Is this possible at all?