*Fix some bugs of pet.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-03-27 22:47:28 -06:00
1 parent d0a58f705f
commit ff83e4a9b1
18 files changed
+260 -182

No files matched your search

+4 -3
View File
@@ -5081,11 +5081,12 @@ bool ChatHandler::HandleResetLevelCommand(const char * args)
player->SetUInt32Value(PLAYER_XP,0);
// reset level to summoned pet
Pet* pet = player->GetPet();
if(pet && pet->getPetType()==SUMMON_PET)
Guardian* pet = player->GetGuardianPet();
if(pet)
{
pet->InitStatsForLevel(1);
pet->InitTalentForLevel();
if(pet->isPet())
((Pet*)pet)->InitTalentForLevel();
}
return true;
}