Core/Player: Introduce separate level caps for each expansion

Port From (https://github.com/TrinityCore/TrinityCore/commit/b7353fb92795801c2c2a52035026e9e0059fa83d)
This commit is contained in:
hondacrx
2022-02-28 13:25:22 -05:00
parent 4be35daf6f
commit c82e78d4cb
3 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -3129,7 +3129,7 @@ namespace Game.Achievements
break;
}
case ModifierTreeType.PlayerIsAtMaxExpansionLevel: // 264
if (referencePlayer.GetLevel() != Global.ObjectMgr.GetMaxLevelForExpansion((Expansion)WorldConfig.GetIntValue(WorldCfg.Expansion)))
if (!referencePlayer.IsMaxLevel())
return false;
break;
case ModifierTreeType.TransmogSource: // 265