mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Merge pull request #601 from hermensbas/feature/minor_istaxiflying_method_usage
Replaced isTaxiFlying check with new function
This commit is contained in:
commit
6af6350f1e
@ -1236,9 +1236,7 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot, std::vector<WorldLocation>&
|
|||||||
if (botAI)
|
if (botAI)
|
||||||
{
|
{
|
||||||
// ignore when in when taxi with boat/zeppelin and has players nearby
|
// ignore when in when taxi with boat/zeppelin and has players nearby
|
||||||
if (bot->HasUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT) &&
|
if (botAI->IsTaxiFlying() && botAI->HasPlayerNearby())
|
||||||
bot->HasUnitState(UNIT_STATE_IGNORE_PATHFINDING) &&
|
|
||||||
botAI->HasPlayerNearby())
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user