mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[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:
parent
5564346c58
commit
d56de2cd77
10 changed files with 152 additions and 36 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue