mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
[Bots] Fix AA ranks to account for level (#4567)
Previously level requirement was only being checked on the initial rank of an AA. If passed, bots would gain all ranks for that AA regardless of level, this will now check for the level requirement for each rank before granting the AA
This commit is contained in:
parent
5f0b999ca9
commit
8e40e5357c
@ -1265,7 +1265,7 @@ void Bot::LoadAAs() {
|
||||
}
|
||||
|
||||
while(current) {
|
||||
if (!CanUseAlternateAdvancementRank(current)) {
|
||||
if (current->level_req > GetLevel() || !CanUseAlternateAdvancementRank(current)) {
|
||||
current = nullptr;
|
||||
} else {
|
||||
current = current->next;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user