1676 {
1679 {
1681 Pet* newPet =
new Pet(player, newPetType);
1683 {
1685 {
1689 break;
1690 default:
1691 break;
1692 }
1693 }
1694 else
1695 delete newPet;
1696 }
1697 }
@ CLASS_HUNTER
Definition: SharedDefines.h:143
@ 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
Player * ToPlayer()
Definition: Object.h:201
uint32 GetEntry() const
Definition: Object.h:115
void SetEntry(uint32 entry)
Definition: Object.h:116
bool LoadPetFromDB(Player *owner, uint32 petEntry, uint32 petnumber, bool current, uint32 healthPct=0, bool fullMana=false)
Definition: Pet.cpp:215
Definition: Player.h:1081
uint32 GetLastPetSpell() const
Definition: Player.h:2459
bool IsClass(Classes playerClass, ClassContext context=CLASS_CONTEXT_NONE) const override
Definition: Player.cpp:1284
uint32 GetLastPetNumber() const
Definition: Player.h:2457
bool CanResummonPet(uint32 spellid)
Definition: Player.cpp:14287
Unit * GetCaster()
Definition: SpellScript.cpp:401