[8203] Correcttly re-apply level scaled item stat mods at player level change. Author: Trogvar

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-24 09:15:29 +08:00
parent a8c9cc25ab
commit 62a6d1dfbe
3 changed files with 37 additions and 6 deletions

View File

@@ -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();