mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Allow players to command self-bots instead of getting an I'm busy message. (#707)
This commit is contained in:
parent
af0a6b73e1
commit
64c1286921
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user