Skip to content

Commit

Permalink
NPCBots: Do not allow using .npcbot recall teleport command if bots…
Browse files Browse the repository at this point in the history
… are hidden (prevent quick reappear)

(cherry picked from commit b57e14f576bde9d7f1517eb9736a0cb71451e70a)
  • Loading branch information
trickerer committed Dec 5, 2024
1 parent 51c1f04 commit 22449ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/game/AI/NpcBots/botcommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3101,6 +3101,12 @@ class script_bot_commands : public CommandScript
handler->SetSentErrorMessage(true);
return false;
}
if (owner->GetBotMgr()->GetBotsHidden())
{
handler->GetSession()->SendNotification("You can't do that while bots are hidden");
handler->SetSentErrorMessage(true);
return false;
}
if (owner->GetBotMgr()->IsPartyInCombat(true))
{
handler->SendNotification("You can't do that while in PvP combat");
Expand Down

0 comments on commit 22449ad

Please sign in to comment.