Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete committed Nov 28, 2022
2 parents 7d43ae7 + 7a20c77 commit 8f4570a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion playerbot/RandomPlayerbotMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2209,7 +2209,7 @@ uint32 RandomPlayerbotMgr::GetZoneLevel(uint16 mapId, float teleX, float teleY,

void RandomPlayerbotMgr::Refresh(Player* bot)
{
if (!bot->GetMap())
if (bot->IsBeingTeleported() || !bot->GetMap())
return;

if (sServerFacade.UnitIsDead(bot))
Expand Down Expand Up @@ -2597,6 +2597,9 @@ void RandomPlayerbotMgr::HandleCommand(uint32 type, const string& text, Player&
if (team != TEAM_BOTH_ALLOWED && bot->GetTeam() != team)
continue;

if (type == CHAT_MSG_GUILD && bot->GetGuildId() != fromPlayer.GetGuildId())
continue;

if (!channelName.empty())
{
if (ChannelMgr* cMgr = channelMgr(bot->GetTeam()))
Expand Down

0 comments on commit 8f4570a

Please sign in to comment.