Useful to all classes this very simple add-on will prevent you from accidentally attacking crowd-controlled units. Sheepdog will keep them safe from you! Features:
It barks when you target a crowd-controlled unit.
It warns you gently when a unit has been crowd-controlled somewhere nearby so you can be a little bit more cautious with your AOEs.
Sheepdog doesn't bite!
Currently detected crowd-control spells:
Banish
Bind Elemental
Fear (Should be just glyphed-Fear but there is no way to tell them apart)
Freezing Trap Effect
Hex
Hibernate
Polymorph
Repentance
Sap
Seduction
Shackle Undead
Wyvern Sting
Type /sheepdog (Graphical UI) or /shed (command line UI) for options (sounds and behavior).
Sheepdog supports AddonLoader: it will be loaded when you enter in combat or if you access to its configuration.
To report issues or ask for new features, use the ticket system.
There is a way to go around that but it gets really complicated... Sheepdog would have to maintain a CASTER-GUID_to_UNIT table and then on SPELL_CAST_START it would have to get the GUID of the caster's target and store it to match your future target's GUID...
If the caster immediately changes target or uses focus instead, this can get wrong...
I think this is not worth the mess, as you discribed this isn't even guaranteed to report the right target. You would need constant target checking and table look-ups, seems not to be a good way to go, especially in big BGs or 25 man raiding.
well, option b would be to have sheepdogs communicate cc targets to other sheepdogs. you could have it as an option called "dogwhistle" since nobody else would hear it. :)
Not really thinking this through, but you asked about UNIT_SPELLCAST_SENT. First check for mouse down target to catch users who click cast, then if not mouse down target, then target == target.
Yes, based on what I've read so far, you would be registering for CLEU and now U_SC_S, but it solves your problem. I think.
just made a test with UNIT_SPELLCAST_SENT, it doesn't work, it seems to fire only when the 'player' himself is casting something. In a way it's logical since only the player sends something to the server.
The only way would be to use inter-add-on communication...
Useful to all classes this very simple add-on will prevent you from accidentally attacking crowd-controlled units. Sheepdog will keep them safe from you!
Features:
Currently detected crowd-control spells:
Sheepdog supports AddonLoader: it will be loaded when you enter in combat or if you access to its configuration.
To report issues or ask for new features, use the ticket system.
i thought they did for friendly caster units, no?
There is a way to go around that but it gets really complicated... Sheepdog would have to maintain a CASTER-GUID_to_UNIT table and then on SPELL_CAST_START it would have to get the GUID of the caster's target and store it to match your future target's GUID...
If the caster immediately changes target or uses focus instead, this can get wrong...
It can be done but is it really worth it?
Make a feature request and will see the votes.
Yes, based on what I've read so far, you would be registering for CLEU and now U_SC_S, but it solves your problem. I think.
The only way would be to use inter-add-on communication...