[12166] skip expansion races if not playing with expansion

Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
Salja 2012-08-31 20:39:11 +02:00 committed by Antz
parent d22e1d3b7a
commit 6004b9f8b7
3 changed files with 8 additions and 2 deletions

View file

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