(LUA/API) IsSpellInRange for pet?

So according to different websites you should be able to get info if the pet is in range to use an ability by using

IsSpellInRange(4, “pet”, “target”)
where 4 is the index, “pet” is the pets spellbook and “target” is my target. But it just doesnt work…

Are you sure it is index 4? Because from what I understand it is Defensive mode. Cannot really check if in range for pet stance I suppose. :smiley:

upd.: Tried it and the function returns “empty result” for any pet ability using /dump. For player it works just fine.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.