From 64c1286921bd3d8319838f43d5cf0ab9ba0b5b67 Mon Sep 17 00:00:00 2001 From: EricksOliveira Date: Thu, 14 Nov 2024 14:24:02 +0000 Subject: [PATCH] Allow players to command self-bots instead of getting an I'm busy message. (#707) --- src/PlayerbotSecurity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlayerbotSecurity.cpp b/src/PlayerbotSecurity.cpp index 0a045cdb..8813cde4 100644 --- a/src/PlayerbotSecurity.cpp +++ b/src/PlayerbotSecurity.cpp @@ -181,7 +181,7 @@ bool PlayerbotSecurity::CheckLevelFor(PlayerbotSecurityLevel level, bool silent, { DenyReason reason = PLAYERBOT_DENY_NONE; PlayerbotSecurityLevel realLevel = LevelFor(from, &reason, ignoreGroup); - if (realLevel >= level) + if (realLevel >= level || from == bot) return true; PlayerbotAI* fromBotAI = GET_PLAYERBOT_AI(from);