951 {
955
957
959 {
962 }
963
965 {
966 if (target->GetLevel() > player->
GetLevel())
967 {
970 }
971
973 {
976 }
977
979 {
982 }
983
985 if (petStable)
986 {
989
991 {
994 }
995 }
996
998 {
1001 }
1002
1003 if (target->GetOwnerGUID())
1004 {
1007 }
1008 }
1009 else
1010 {
1013 }
1014
1016 }
@ PET_TAME_NOT_TAMEABLE
Definition: SharedDefines.h:3680
@ PET_TAME_INVALID_CREATURE
Definition: SharedDefines.h:3677
@ PET_TAME_TOO_HIGHLEVEL
Definition: SharedDefines.h:3685
@ PET_TAME_CREATURE_ALREADY_OWNED
Definition: SharedDefines.h:3679
@ PET_TAME_CANT_CONTROL_EXOTIC
Definition: SharedDefines.h:3688
@ PET_TAME_TOO_MANY
Definition: SharedDefines.h:3678
@ PET_TAME_ANOTHER_SUMMON_ACTIVE
Definition: SharedDefines.h:3681
@ SPELL_FAILED_ALREADY_HAVE_SUMMON
Definition: SharedDefines.h:956
@ SPELL_FAILED_DONT_REPORT
Definition: SharedDefines.h:976
@ SPELL_CAST_OK
Definition: SharedDefines.h:1138
Definition: Creature.h:46
bool IsPlayer() const
Definition: Object.h:197
Player * ToPlayer()
Definition: Object.h:198
Definition: PetDefines.h:202
PetInfo const * GetUnslottedHunterPet() const
Definition: PetDefines.h:230
Optional< PetInfo > CurrentPet
Definition: PetDefines.h:225
Definition: Player.h:1064
bool CanTameExoticPets() const
Definition: Player.h:2169
PetStable * GetPetStable()
Definition: Player.h:1202
void SendTameFailure(uint8 result)
Definition: Unit.cpp:19957
ObjectGuid GetCharmGUID() const
Definition: Unit.h:1218
uint8 GetLevel() const
Definition: Unit.h:855
Unit * GetExplTargetUnit()
Definition: SpellScript.cpp:433
Unit * GetCaster()
Definition: SpellScript.cpp:401