Quantcast Detecting changes to Command Demon - WoWInterface
Thread Tools Display Modes
12-20-13, 11:35 AM   #1
Rainrider
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 358
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
No Life!
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,276
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?
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote
12-20-13, 08:56 PM   #3
Rainrider
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 358
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
No Life!
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,276
What does GetSpellInfo(119898) return?
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote
12-20-13, 10:53 PM   #5
Rainrider
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 358
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