Allow players to command self-bots instead of getting an I'm busy message. (#707)

This commit is contained in:
EricksOliveira 2024-11-14 14:24:02 +00:00 committed by GitHub
parent af0a6b73e1
commit 64c1286921
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);