mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -427,7 +427,9 @@ LogColors = ""
|
|||
#
|
||||
# Expansion
|
||||
# Allow server use content from expansion
|
||||
# Default: 2 - check expansion 2 maps existence, and if client support expansion 2 and account have
|
||||
# Default: 3 - check expansion 3 maps existence, and if client support expansion 3 and account have
|
||||
# expansion 3 setting then allow visit expansion 3 maps, allow create new race and class character)
|
||||
# 2 - check expansion 2 maps existence, and if client support expansion 2 and account have
|
||||
# expansion 2 setting then allow visit expansion 2 maps, allow create new class character)
|
||||
# 1 - check expansion 1 maps existence, and if client support expansion 1 and account have
|
||||
# expansion 1 setting then allow visit expansion 1 maps, allow create new races character)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12165"
|
||||
#define REVISION_NR "12166"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue