View Single Post
04-04-21, 08:30 PM   #6
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
Hi all

When I use "C_PetJournal.GetPetInfoByPetID(petGUID)" I get the following results;


What I am trying to get is the summonPetSpellID.

The documentation indicates that GetSpellLink works with the spellName yet I get nils when I use it.

Right now the only way that I can get the summonPetSpellID is to get it from the "UNIT_SPELLCAST_SUCCEEDED" event, yet this returns a weird result;
- If I have no pet out I get the correct spellID.
- If I summon a new pet to replace the current pet the spell ID reflects the spellID of the pet that is dismissed.
- If I dismiss a pet the "UNIT_SPELLCAST_SUCCEEDED" does not fire.

I have not been able to find a function that dismisses a pet, if the pet is not out it will summon the pet, if the pet is already out it will dismiss it.

I am looking for a reliable way to get the summonPetSpellID, yet it still eludes me.
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote