From 8e40e5357ce4f9c4b1485fb0f11dc9a7ffce7e69 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:58:11 -0600 Subject: [PATCH] [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 --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 7871f9ac9..bd077b456 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -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;