mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +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())
|
if(owner->IsPvP())
|
||||||
SetPvP(true);
|
SetPvP(true);
|
||||||
|
|
||||||
|
SetCanModifyStats(true);
|
||||||
InitStatsForLevel(petlevel);
|
InitStatsForLevel(petlevel);
|
||||||
InitTalentForLevel(); // set original talents points before spell loading
|
InitTalentForLevel(); // set original talents points before spell loading
|
||||||
|
|
||||||
|
|
@ -263,7 +264,6 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
|
||||||
delete result;
|
delete result;
|
||||||
|
|
||||||
//load spells/cooldowns/auras
|
//load spells/cooldowns/auras
|
||||||
SetCanModifyStats(true);
|
|
||||||
_LoadAuras(timediff);
|
_LoadAuras(timediff);
|
||||||
|
|
||||||
//init AB
|
//init AB
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8418"
|
#define REVISION_NR "8419"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue