From 0f3c1129725b27c934543487aa09925d7ea15d03 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:29:18 -0600 Subject: [PATCH] [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 --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 5b858ecda..a190d3315 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -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;