From 6e4db7ee3be2fbc7ea919782a5df415a3795e00d Mon Sep 17 00:00:00 2001 From: bash Date: Sun, 13 Oct 2024 22:48:33 +0000 Subject: [PATCH] Replaced isTaxiFlying check with new function --- src/RandomPlayerbotMgr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 8ace6b8d..c48b5b25 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -1236,9 +1236,7 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot, std::vector& if (botAI) { // ignore when in when taxi with boat/zeppelin and has players nearby - if (bot->HasUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT) && - bot->HasUnitState(UNIT_STATE_IGNORE_PATHFINDING) && - botAI->HasPlayerNearby()) + if (botAI->IsTaxiFlying() && botAI->HasPlayerNearby()) return; }