mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Command] Only follow the command given by master when multiple player one group
This commit is contained in:
@@ -350,7 +350,7 @@ void PlayerbotAI::UpdateAIInternal([[maybe_unused]] uint32 elapsed, bool minimal
|
|||||||
|
|
||||||
std::string const command = holder.GetCommand();
|
std::string const command = holder.GetCommand();
|
||||||
Player* owner = holder.GetOwner();
|
Player* owner = holder.GetOwner();
|
||||||
if (!helper.ParseChatCommand(command, owner) && holder.GetType() == CHAT_MSG_WHISPER)
|
if (owner == master && !helper.ParseChatCommand(command, owner) && holder.GetType() == CHAT_MSG_WHISPER)
|
||||||
{
|
{
|
||||||
// To prevent spam caused by WIM
|
// To prevent spam caused by WIM
|
||||||
if (!(command.rfind("WIM", 0) == 0) &&
|
if (!(command.rfind("WIM", 0) == 0) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user