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.