mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[8419] Allow updating pet stats at loading more early (before InitStatsForLevel).
This commit is contained in:
parent
0c78bfba33
commit
344c03fc03
2 changed files with 2 additions and 2 deletions
|
|
@ -224,6 +224,7 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
|
|||
if(owner->IsPvP())
|
||||
SetPvP(true);
|
||||
|
||||
SetCanModifyStats(true);
|
||||
InitStatsForLevel(petlevel);
|
||||
InitTalentForLevel(); // set original talents points before spell loading
|
||||
|
||||
|
|
@ -263,7 +264,6 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
|
|||
delete result;
|
||||
|
||||
//load spells/cooldowns/auras
|
||||
SetCanModifyStats(true);
|
||||
_LoadAuras(timediff);
|
||||
|
||||
//init AB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue