[8419] Allow updating pet stats at loading more early (before InitStatsForLevel).

This commit is contained in:
VladimirMangos 2009-08-25 15:32:35 +04:00
parent 0c78bfba33
commit 344c03fc03
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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__