Reply
Thread Tools Display Modes
Unread 12-20-13, 11:35 AM   #1
Rainrider
A Rage Talon Dragon Guard
Join Date: Nov 2008
Posts: 315
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?
Rainrider is offline   Reply With Quote
Unread 12-20-13, 07:28 PM   #2
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,259
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, ShieldsUp, 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!
Phanx is offline   Reply With Quote
Unread 12-20-13, 08:56 PM   #3
Rainrider
A Rage Talon Dragon Guard
Join Date: Nov 2008
Posts: 315
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.
Rainrider is offline   Reply With Quote
Unread 12-20-13, 09:18 PM   #4
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,259
What does GetSpellInfo(119898) return?
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, 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!
Phanx is offline   Reply With Quote
Unread 12-20-13, 10:53 PM   #5
Rainrider
A Rage Talon Dragon Guard
Join Date: Nov 2008
Posts: 315
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.
Rainrider is offline   Reply With Quote
Reply

Go BackWoWInterface » 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