Added min and max level for smartScale

This commit is contained in:
bash
2024-10-10 18:01:54 +00:00
parent 1024f8c374
commit 90464ae3ed
4 changed files with 11 additions and 1 deletions

View File

@@ -4288,7 +4288,9 @@ bool PlayerbotAI::AllowActive(ActivityType activityType)
// GetPriorityBracket acitivity
float activePerc = 100;
if (sPlayerbotAIConfig->botActiveAloneSmartScale)
if (sPlayerbotAIConfig->botActiveAloneSmartScale &&
bot->GetLevel() >= sPlayerbotAIConfig->botActiveAloneSmartScaleWhenMinLevel &&
bot->GetLevel() <= sPlayerbotAIConfig->botActiveAloneSmartScaleWhenMaxLevel)
{
std::pair<uint8, uint8> priorityBracket = GetPriorityBracket(type);
if (!priorityBracket.second) return true;