Skip to content

Commit

Permalink
NPCBots: Fix bots always resetting when teleported via `NpcBot.HideSp…
Browse files Browse the repository at this point in the history
…awns`. Fix error message.
  • Loading branch information
trickerer committed May 21, 2024
1 parent 0b5b5b3 commit 84a806c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/game/AI/NpcBots/bot_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17173,7 +17173,7 @@ bool bot_ai::GlobalUpdate(uint32 diff)
else
{
_canAppearInWorld = false;
LOG_ERROR("npcbots", "Error: bot {} is not in world", me->GetEntry());
LOG_ERROR("npcbots", "Bot {} tried to check hide status but doesn't have a valid map set", me->GetEntry());
}
}
else
Expand Down Expand Up @@ -18264,7 +18264,7 @@ bool bot_ai::FinishTeleport(bool reset)
//1) Cannot teleport: master disappeared - return home
if (IAmFree()/* || master->GetSession()->isLogingOut()*/)
{
TeleportHomeStart(true);
TeleportHomeStart(!BotMgr::HideBotSpawns() || !CanAppearInWorld());
_evadeMode = false;

return false;
Expand Down

0 comments on commit 84a806c

Please sign in to comment.