[8053] At character talents reset using chat command also reset talents for all character pets.

This applied to .reset talents and .reset all talents commands.
This commit is contained in:
VladimirMangos 2009-06-21 00:23:47 +04:00
parent 5564346c58
commit d56de2cd77
10 changed files with 152 additions and 36 deletions

View file

@ -797,6 +797,10 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder * holder)
SendDoFlight( mountDisplayId, path, startNode );
}
// reset for all pets before pet loading
if(pCurrChar->HasAtLoginFlag(AT_LOGIN_RESET_PET_TALENTS))
Pet::resetTalentsForAllPetsOf(pCurrChar);
// Load pet if any (if player not alive and in taxi flight or another then pet will remember as temporary unsummoned)
pCurrChar->LoadPet();