Skip to content

Commit

Permalink
AI chat: Revert bots talking to bots too much
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Jan 7, 2025
1 parent d03c069 commit c2900ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playerbot/PlayerbotAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ void PlayerbotAI::HandleBotOutgoingPacket(const WorldPacket& packet)
if (bot->InBattleGround() && !(isMentioned || (msgtype != CHAT_MSG_CHANNEL && !isFromFreeBot)))
return;

if (!isAiChat && HasRealPlayerMaster() && guid1 != GetMaster()->GetObjectGuid())
if (HasRealPlayerMaster() && guid1 != GetMaster()->GetObjectGuid())
return;

if (lang == LANG_ADDON)
Expand All @@ -1650,7 +1650,7 @@ void PlayerbotAI::HandleBotOutgoingPacket(const WorldPacket& packet)
return;
}
}
else if (!isAiChat)
else
{
if (isFromFreeBot && urand(0, 20))
return;
Expand Down

0 comments on commit c2900ba

Please sign in to comment.