Skip to content

Commit

Permalink
Alt login: Fixed level and map login criteria being defined incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Dec 7, 2024
1 parent 4980d16 commit 07690a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playerbot/PlayerbotLoginMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,11 @@ LoginCriteria PlayerBotLoginMgr::GetLoginCriteria(const uint8 attempt) const
if (configCriteria[i] == "classrace")
ADD_CRITERIA(CLASSRACE, space.classRaceBucket[info.GetClass()][info.GetRace()] <= 0);
if (configCriteria[i] == "level")
ADD_CRITERIA(LEVEL, space.classRaceBucket[info.GetLevel()] <= 0);
ADD_CRITERIA(LEVEL, space.levelBucket[info.GetLevel()] <= 0);
if (configCriteria[i] == "range")
ADD_CRITERIA(RANGE, !info.IsNearPlayer(space));
if (configCriteria[i] == "map")
ADD_CRITERIA(GUILD, !info.IsOnPlayerMap(space));
ADD_CRITERIA(MAP, !info.IsOnPlayerMap(space));
if (configCriteria[i] == "guild")
ADD_CRITERIA(GUILD, !info.IsInPlayerGuild(space));
}
Expand Down Expand Up @@ -650,7 +650,7 @@ void PlayerBotLoginMgr::FillLoginLogoutQueue()
loginSpace.totalSpace = 0;
}

sLog.outError("PlayerbotLoginMgr: Attempt %d, space left %d", attempt, loginSpace.totalSpace);
sLog.outDebug("PlayerbotLoginMgr: Attempt %d, space left %d", attempt, loginSpace.totalSpace);

if (loginSpace.totalSpace <= 0)
break;
Expand Down

0 comments on commit 07690a1

Please sign in to comment.