mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
[Command] Only follow the command given by master when multiple player one group
This commit is contained in:
parent
f9bcfeb000
commit
c191dfc35f
@ -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) &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user