mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
Fix bots from loading AAs that are too high of a level for them.
This commit is contained in:
parent
c91374444b
commit
87b4640ff0
@ -1280,6 +1280,11 @@ void Bot::LoadAAs() {
|
|||||||
|
|
||||||
AA::Rank *current = ability->first;
|
AA::Rank *current = ability->first;
|
||||||
|
|
||||||
|
if (current->level_req > GetLevel()) {
|
||||||
|
++iter;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
while(current) {
|
while(current) {
|
||||||
if(!CanUseAlternateAdvancementRank(current)) {
|
if(!CanUseAlternateAdvancementRank(current)) {
|
||||||
current = nullptr;
|
current = nullptr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user