WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Detecting changes to Command Demon (https://www.wowinterface.com/forums/showthread.php?t=48700)

Rainrider 12-20-13 11:35 AM

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?

Phanx 12-20-13 07:28 PM

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?

Rainrider 12-20-13 08:56 PM

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.

Phanx 12-20-13 09:18 PM

What does GetSpellInfo(119898) return?

Rainrider 12-20-13 10:53 PM

Hah, nice one Phanx, the third return (the texture) is different: spell_fel_elementaldevastation when Singe Magic is available. Thank you!


All times are GMT -6. The time now is 02:17 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI