[8203] Correcttly re-apply level scaled item stat mods at player level change. Author: Trogvar
--HG-- branch : trunk
This commit is contained in:
1 parent
a8c9cc25ab
commit
62a6d1dfbe
3 files changed
+37
-6
No files matched your search
@@ -5217,6 +5217,8 @@ bool ChatHandler::HandleResetLevelCommand(const char * args)
|
||||
? sWorld.getConfig(CONFIG_START_PLAYER_LEVEL)
|
||||
: sWorld.getConfig(CONFIG_START_HEROIC_PLAYER_LEVEL);
|
||||
|
||||
target->_ApplyAllLevelScaleItemMods(false);
|
||||
|
||||
target->SetLevel(start_level);
|
||||
target->InitRunes();
|
||||
target->InitStatsForLevel(true);
|
||||
@@ -5225,6 +5227,8 @@ bool ChatHandler::HandleResetLevelCommand(const char * args)
|
||||
target->InitTalentForLevel();
|
||||
target->SetUInt32Value(PLAYER_XP,0);
|
||||
|
||||
target->_ApplyAllLevelScaleItemMods(true);
|
||||
|
||||
// reset level for pet
|
||||
if(Pet* pet = target->GetPet())
|
||||
pet->SynchronizeLevelWithOwner();
|
||||
|
||||
Reference in new issue
Block a user