diff options
author | megamage <none@none> | 2009-03-27 22:47:28 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-27 22:47:28 -0600 |
commit | ff83e4a9b13594be4a682da535c9522c9f9de186 (patch) | |
tree | b948e5d4508f23b9c99335d4a92475d9d1f6aea1 /src/game/Level2.cpp | |
parent | d0a58f705f34a6831a242977b0059a03dba8b5a6 (diff) |
*Fix some bugs of pet.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r-- | src/game/Level2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index c4a716c951e..a6aca23f80c 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -1839,7 +1839,7 @@ bool ChatHandler::HandleNpcTameCommand(const char* /*args*/) pet->SetUInt32Value(UNIT_FIELD_LEVEL, level); // caster have pet now - player->SetPet(pet, true); + player->SetGuardian(pet, true); pet->SavePetToDB(PET_SAVE_AS_CURRENT); player->PetSpellInitialize(); @@ -4377,7 +4377,7 @@ bool ChatHandler::HandleCreatePetCommand(const char* args) // visual effect for levelup pet->SetUInt32Value(UNIT_FIELD_LEVEL,creatureTarget->getLevel()); - player->SetPet(pet, true); + player->SetGuardian(pet, true); pet->SavePetToDB(PET_SAVE_AS_CURRENT); player->PetSpellInitialize(); |