Originally Posted by
CrysisMK2
Also, you need to use the following args: IsSpellInRange(Spell-number-in-spellbook, "pet", "target"), where Spell-number-in-spellbook is the index of that spell in the pet spellbook, starting at the top left, and going down, then right. So for me it'd be 9.
Is there no better way, not that I have tested the method you have offered, because this will differ on almost every single pet due to different abilities. Growl is never in the same spot on the spellbook.
edit, I just tried your method, but replacing "Spell-number-in-spellbook" with "Growl" this seems to make it work.
Code:
if IsSpellInRange("Growl","pet","target") == 1 then
return true
end