Thread Tools Display Modes
01-02-11, 07:16 AM   #1
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
How to detect 'Guardian of Ancient Kings'?

I'm trying to detect the use of Paladins Guardian of Ancient Kings ability.

I know the spell id is 86150 (http://www.wowhead.com/spell=86150).
The spell triggers one of the following buffs:
http://www.wowhead.com/spell=86659 (Prot)
http://www.wowhead.com/spell=86698 (Ret)
http://www.wowhead.com/spell=86669 (Holy)

It's possible to query the buff via UnitAura().

The problem is, the only COMBAT_LOG_EVENT_UNFILTERED event 'Guardian of Ancient Kings' triggers is SPELL_CAST_SUCCESS.
There's no SPELL_AURA_APPLIED if the buff applies and no SPELL_AURA_REMOVED if the buff ends.

I can't see why. Must be a bug?

Any ideas how to detect the use of 'Guardian of Ancient Kings'?
  Reply With Quote
01-02-11, 08:01 AM   #2
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
In what way do you want too detect it, if anyone uses it?

i use an addon (rsa) that announces use on guardian and when it fades in chat...though thats only for your guardian.

It uses these spell id's though.

http://www.wowhead.com/spell=86657/ancient-guardian

http://www.wowhead.com/spell=86674/ancient-healer

http://www.wowhead.com/spell=86701/ancient-crusader

-_-v

Last edited by nin : 01-02-11 at 08:06 AM.
  Reply With Quote
01-02-11, 09:09 AM   #3
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Well, that helped a bit. Now I have at least the right spell ids. Thank you.

But the main problem is still that the use of the ability (by a party member) don't triggers anything except COMBAT_LOG_EVENT_UNFILTERED/SPELL_CAST_SUCCESS. And if the buff ends there's not even an event.

Why? I thought COMBAT_LOG_EVENT_UNFILTERED/SPELL_AURA_APPLIED and COMBAT_LOG_EVENT_UNFILTERED/SPELL_AURA_REMOVED should be triggered as well if a party member gains or loses the guardian buff.


Originally Posted by nin View Post
In what way do you want too detect it, if anyone uses it?

i use an addon (rsa) that announces use on guardian and when it fades in chat...though thats only for your guardian.

It uses these spell id's though.

http://www.wowhead.com/spell=86657/ancient-guardian

http://www.wowhead.com/spell=86674/ancient-healer

http://www.wowhead.com/spell=86701/ancient-crusader

-_-v
  Reply With Quote
01-02-11, 09:31 AM   #4
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
hehe, Im really not the right person for these questions i just felt i wanted too enlighten you about the spell id's.

Im not sure exactly how too track it, it sounds odd indeed that the spell(s) doesn't trigger any event.

Here's another great addon, still a chat cooldown announcer.. but it might shed you some light on how he tracks the auras.

https://github.com/Guardix/gxCDBroad...dbroadcast.lua

Good luck, sorry i can't help much.. coding aint my strong side
  Reply With Quote
01-02-11, 12:58 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Have you tried using http://wowprogramming.com/docs/events/UNIT_AURA ?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to detect 'Guardian of Ancient Kings'?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off