59 if (!creatrueTemplate->
family)
61 handler->
PSendSysMessage(
"This creature cannot be tamed. (family id: 0).");
66 if (!player->GetPetGUID().IsEmpty())
91 TC_LOG_ERROR(
"misc",
"InitStatsForLevel() in EffectTameCreature failed! Pet deleted.");
110 player->SetMinion(pet,
true);
112 player->PetSpellInitialize();
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
void SetPetNumber(uint32 petnumber, bool statwindow)
Definition: Unit.cpp:12048
Creature * getSelectedCreature()
Definition: Chat.cpp:615
Map * GetMap() const
Definition: Object.h:543
void SetUInt32Value(uint16 index, uint32 value)
Definition: Object.cpp:996
Definition: Creature.h:467
bool CreateBaseAtCreature(Creature *creature)
Definition: Pet.cpp:730
Player * GetPlayer() const
Definition: WorldSession.h:927
void SetGuidValue(uint16 index, ObjectGuid const &value)
Definition: Object.cpp:1120
#define sObjectMgr
Definition: ObjectMgr.h:1567
Definition: UpdateFields.h:105
CharmInfo * GetCharmInfo()
Definition: Unit.h:1748
Definition: PetDefines.h:25
uint8 getLevel() const
Definition: Unit.h:1408
Definition: PetDefines.h:35
TypeID GetTypeId() const
Definition: Object.h:113
void SavePetToDB(PetSaveMode mode)
Definition: Pet.cpp:372
CreatureTemplate const * GetCreatureTemplate() const
Definition: Creature.h:558
void setDeathState(DeathState s) override
Definition: Creature.cpp:1624
Definition: Language.h:33
bool AddToMap(T *)
Definition: Map.cpp:566
void InitPetCreateSpells()
Definition: Pet.cpp:1541
bool IsPet() const
Definition: Unit.h:1403
Definition: UpdateFields.h:87
Definition: ObjectGuid.h:33
Creature * ToCreature()
Definition: Object.h:194
WorldSession * GetSession()
Definition: Chat.h:59
void RemoveCorpse(bool setSpawnTime=true)
Definition: Creature.cpp:280
uint32 family
Definition: Creature.h:112
bool InitStatsForLevel(uint8 level)
Definition: Pet.cpp:801
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
Definition: UpdateFields.h:107
void SetFullHealth()
Definition: Unit.h:1440
void SetHealth(uint32 val)
Definition: Unit.cpp:11537
Definition: Creature.h:79