mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-12-01 21:12:50 +08:00
- Fixed bug with not respecting InstantFlightPaths config (#1410)
This commit is contained in:
@@ -73,7 +73,7 @@ bool TaxiAction::Execute(Event event)
|
|||||||
{
|
{
|
||||||
if (Creature* npcPtr = ObjectAccessor::GetCreature(*bot, npcGuid))
|
if (Creature* npcPtr = ObjectAccessor::GetCreature(*bot, npcGuid))
|
||||||
if (!movement.taxiNodes.empty())
|
if (!movement.taxiNodes.empty())
|
||||||
bot->ActivateTaxiPathTo(movement.taxiNodes, npcPtr);
|
bot->ActivateTaxiPathTo(movement.taxiNodes, npcPtr, 0);
|
||||||
},
|
},
|
||||||
delay);
|
delay);
|
||||||
botAI->SetNextCheckDelay(delay + 50);
|
botAI->SetNextCheckDelay(delay + 50);
|
||||||
@@ -114,7 +114,7 @@ bool TaxiAction::Execute(Event event)
|
|||||||
return bot->ActivateTaxiPathTo({entry->from, entry->to}, npc, 0);
|
return bot->ActivateTaxiPathTo({entry->from, entry->to}, npc, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!movement.taxiNodes.empty() && !bot->ActivateTaxiPathTo(movement.taxiNodes, npc))
|
if (!movement.taxiNodes.empty() && !bot->ActivateTaxiPathTo(movement.taxiNodes, npc, 0))
|
||||||
{
|
{
|
||||||
movement.taxiNodes.clear();
|
movement.taxiNodes.clear();
|
||||||
movement.Set(nullptr);
|
movement.Set(nullptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user