[Bots] Fix AA ranks to account for level

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:
nytmyr
2024-12-06 22:29:18 -06:00
parent db26842194
commit 0f3c112972
+1 -1
View File
@@ -1285,7 +1285,7 @@ void Bot::LoadAAs() {
}
while(current) {
if (!CanUseAlternateAdvancementRank(current)) {
if (current->level_req > GetLevel() || !CanUseAlternateAdvancementRank(current)) {
current = nullptr;
} else {
current = current->next;