mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 13:16:23 +00:00
fix(Core/Battlegrounds) Rewrite RandomBG and enabling bg/arenas weights (#2516)
This commit is contained in:
@@ -752,13 +752,6 @@ MapDifficulty const* GetDownscaledMapDifficultyData(uint32 mapId, Difficulty &di
|
||||
|
||||
PvPDifficultyEntry const* GetBattlegroundBracketByLevel(uint32 mapid, uint32 level)
|
||||
{
|
||||
if (mapid == sBattlegroundMgr->randomBgDifficultyEntry.mapId)
|
||||
{
|
||||
if (level < sBattlegroundMgr->randomBgDifficultyEntry.minLevel)
|
||||
return NULL;
|
||||
return &sBattlegroundMgr->randomBgDifficultyEntry;
|
||||
}
|
||||
|
||||
PvPDifficultyEntry const* maxEntry = NULL; // used for level > max listed level case
|
||||
for (uint32 i = 0; i < sPvPDifficultyStore.GetNumRows(); ++i)
|
||||
{
|
||||
@@ -783,13 +776,6 @@ PvPDifficultyEntry const* GetBattlegroundBracketByLevel(uint32 mapid, uint32 lev
|
||||
|
||||
PvPDifficultyEntry const* GetBattlegroundBracketById(uint32 mapid, BattlegroundBracketId id)
|
||||
{
|
||||
if (mapid == sBattlegroundMgr->randomBgDifficultyEntry.mapId)
|
||||
{
|
||||
if (id != sBattlegroundMgr->randomBgDifficultyEntry.bracketId)
|
||||
return NULL;
|
||||
return &sBattlegroundMgr->randomBgDifficultyEntry;
|
||||
}
|
||||
|
||||
for (uint32 i = 0; i < sPvPDifficultyStore.GetNumRows(); ++i)
|
||||
if (PvPDifficultyEntry const* entry = sPvPDifficultyStore.LookupEntry(i))
|
||||
if (entry->mapId == mapid && entry->GetBracketId() == id)
|
||||
|
||||
Reference in New Issue
Block a user