diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index 2b2dfdb0..cb9facf2 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -4135,6 +4135,12 @@ inline bool ZoneHasRealPlayers(Player* bot) bool PlayerbotAI::AllowActive(ActivityType activityType) { + // when botActiveAlone is 100% and smartScale disabled + if (sPlayerbotAIConfig->botActiveAlone >= 100 && !sPlayerbotAIConfig->botActiveAloneSmartScale) + { + return true; + } + // Is in combat. Always defend yourself. if (activityType != OUT_OF_PARTY_ACTIVITY && activityType != PACKET_ACTIVITY) { @@ -4163,12 +4169,6 @@ bool PlayerbotAI::AllowActive(ActivityType activityType) return true; } - // when botActiveAlone is 100% and smartScale disabled - if (sPlayerbotAIConfig->botActiveAlone >= 100 && !sPlayerbotAIConfig->botActiveAloneSmartScale) - { - return true; - } - // bg, raid, dungeon if (!WorldPosition(bot).isOverworld()) {