mirror of
https://github.com/kadeshar/mod-player-bot-level-brackets.git
synced 2026-01-13 01:08:36 +00:00
Fixing a DK edgecase
This commit is contained in:
@@ -1130,6 +1130,13 @@ static int GetOrFlagPlayerBracket(Player* player)
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip brackets that Death Knights cannot be assigned to (upper bound < 55)
|
||||||
|
if (player->getClass() == CLASS_DEATH_KNIGHT && factionRanges[i].upper < 55)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int diff = 0;
|
int diff = 0;
|
||||||
if (player->GetLevel() < factionRanges[i].lower)
|
if (player->GetLevel() < factionRanges[i].lower)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user