1673 {
1676 {
1678 Pet* newPet =
new Pet(player, newPetType);
1680 {
1682
1684 {
1688 break;
1689 default:
1690 break;
1691 }
1692 }
1693 else
1694 delete newPet;
1695 }
1696 }
@ 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: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:206
Definition: Player.h:1056
uint32 GetLastPetSpell() const
Definition: Player.h:2422
uint32 GetLastPetNumber() const
Definition: Player.h:2420
bool CanResummonPet(uint32 spellid)
Definition: Player.cpp:14170
void SetPower(Powers power, uint32 val, bool withPowerUpdate=true, bool fromRegenerate=false)
Definition: Unit.cpp:15552
uint8 getClass() const
Definition: Unit.h:1438
uint32 GetMaxPower(Powers power) const
Definition: Unit.h:1476
Powers getPowerType() const
Definition: Unit.h:1473
Unit * GetCaster()
Definition: SpellScript.cpp:401