1674 {
1677 {
1679 Pet* newPet =
new Pet(player, newPetType);
1681 {
1683
1685 {
1689 break;
1690 default:
1691 break;
1692 }
1693 }
1694 else
1695 delete newPet;
1696 }
1697 }
@ 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:115
Player * ToPlayer()
Definition: Object.h:195
uint32 GetEntry() const
Definition: Object.h:109
void SetEntry(uint32 entry)
Definition: Object.h:110
bool LoadPetFromDB(Player *owner, uint32 petEntry, uint32 petnumber, bool current, uint32 healthPct=0)
Definition: Pet.cpp:207
Definition: Player.h:1046
uint32 GetLastPetSpell() const
Definition: Player.h:2409
uint32 GetLastPetNumber() const
Definition: Player.h:2407
bool CanResummonPet(uint32 spellid)
Definition: Player.cpp:14137
void SetPower(Powers power, uint32 val, bool withPowerUpdate=true, bool fromRegenerate=false)
Definition: Unit.cpp:15458
uint8 getClass() const
Definition: Unit.h:1426
uint32 GetMaxPower(Powers power) const
Definition: Unit.h:1462
Powers getPowerType() const
Definition: Unit.h:1459
Unit * GetCaster()
Definition: SpellScript.cpp:401