announce for casts in progress on the player
i want to write an addon that performs the following:
if ([Ability1, Ability2,... AbilityX] is being cast upon you from any NPC's or players) -> announce for example, if a warlock somewhere/anywhere has targeted you and has begun to cast Chaos Bolt, and it's an ability you've selected to parse, an announcement will be made on screen. does the API allow for such calls? |
The combat log doesn't provide a target for SPELL_CAST_START events so the only way you could guess at a target would be if someone was targeting the warlock and you got which unit the warlock was targeting when they started casting, which isn't necessarily the target of the spell since they could be using mouseover or focus macros.
|
Quote:
|
Nope. Watching nameplate castbars will still only tell you that someone, somewhere, is casting the spell, not who they're casting it on. You can only find out who they're targeting if you target them or mouse over them (or their nameplate) so they get a unit token.
|
Quote:
|
Kollektiv's SpellAlerter used to be able to do this, but I have no idea if it works for MoP.
[EDIT] There's a fan update of spellalerter for 5.1. |
so Kollektiv's Spellcaster seems to be at odds with what Semlar and Phanx mentioned. did this event used to exist? and has it been removed since MOP?
or does the old Spellcaster use some elaborate workaround to search targeted enemies within your group for hostiles targeting you? |
Quote:
|
If someone in your group is targeting the unit when it starts casting, you can detect that they started casting and you can get what unit they're currently targeting.
This is fine for most spells that mobs cast, although a handful of abilities can be cast on another unit without the mob switching targets. Players, on the other hand, do not require targeting a unit to cast on it. In the majority of cases this won't matter. HOWEVER, in the arena you will run into a huge number of players who use macros to cast on either their mouseover target or a specific arena member not only because it's faster but it also prevents YOU from knowing who they're casting on. Almost all healers will also be using either mouseover macros or click casting on unit frames which will also prevent you from detecting who they're casting on. |
All times are GMT -6. The time now is 11:05 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI