mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[12166] skip expansion races if not playing with expansion
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
d22e1d3b7a
commit
6004b9f8b7
3 changed files with 8 additions and 2 deletions
|
|
@ -3120,6 +3120,10 @@ void ObjectMgr::LoadPlayerInfo()
|
|||
if (sWorld.getConfig(CONFIG_UINT32_EXPANSION) < 2 && class_ == CLASS_DEATH_KNIGHT)
|
||||
continue;
|
||||
|
||||
// skip expansion races if not playing with expansion
|
||||
if (sWorld.getConfig(CONFIG_UINT32_EXPANSION) < 3 && (race == RACE_WORGEN || race == RACE_GOBLIN))
|
||||
continue;
|
||||
|
||||
// fatal error if no level 1 data
|
||||
if (!pInfo->levelInfo || pInfo->levelInfo[0].stats[0] == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue