Thread Tools Display Modes
12-20-13, 11:35 AM   #1
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Detecting changes to Command Demon

Command Demon is modified by the currently summoned demon or by using Grimoire of Sacrifice. It is then replaced by a new spell, though IsSpellKnown and IsPlayerSpell both always return false with the ID of the gained spell. Is there some API to get this info?
  Reply With Quote
12-20-13, 07:28 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Which info are you trying to get? Do you want to know which pet you have summoned? Do you want to know whether you have Grimoire of Sacrifice? Do you want to get the text for the current effect from Command Demon?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-20-13, 08:56 PM   #3
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
I want to know the spell that replaced Command Demon. I'm particularly interested in Singe Magic, which is the spell the warlock gets when she sacrifices the imp. IsSpellKnown(132411) and IsPlayerSpell(132411) both return false.
  Reply With Quote
12-20-13, 09:18 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
What does GetSpellInfo(119898) return?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-20-13, 10:53 PM   #5
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Hah, nice one Phanx, the third return (the texture) is different: spell_fel_elementaldevastation when Singe Magic is available. Thank you!

Last edited by Rainrider : 12-20-13 at 11:22 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Detecting changes to Command Demon

Thread Tools
Display Modes

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