1702 {
1705 {
1707 Pet* newPet =
new Pet(player, newPetType);
1709 {
1711 {
1715 break;
1716 default:
1717 break;
1718 }
1719 }
1720 else
1721 delete newPet;
1722 }
1723 }
@ CLASS_CONTEXT_PET
Definition: UnitDefines.h:215
@ NPC_DOOMGUARD
Definition: PetDefines.h:99
@ NPC_INFERNAL
Definition: PetDefines.h:94
@ NPC_IMP
Definition: PetDefines.h:95
PetType
Definition: PetDefines.h:30
@ SUMMON_PET
Definition: PetDefines.h:31
@ HUNTER_PET
Definition: PetDefines.h:32
@ CLASS_HUNTER
Definition: SharedDefines.h:143
Player * ToPlayer()
Definition: Object.h:198
uint32 GetEntry() const
Definition: Object.h:112
void SetEntry(uint32 entry)
Definition: Object.h:113
bool LoadPetFromDB(Player *owner, uint32 petEntry, uint32 petnumber, bool current, uint32 healthPct=0, bool fullMana=false)
Definition: Pet.cpp:215
Definition: Player.h:1064
uint32 GetLastPetSpell() const
Definition: Player.h:2439
bool IsClass(Classes playerClass, ClassContext context=CLASS_CONTEXT_NONE) const override
Definition: Player.cpp:1280
uint32 GetLastPetNumber() const
Definition: Player.h:2437
bool CanResummonPet(uint32 spellid)
Definition: Player.cpp:14254
Unit * GetCaster()
Definition: SpellScript.cpp:401