- Fixed bug with not respecting InstantFlightPaths config (#1410)

This commit is contained in:
kadeshar
2025-07-06 13:38:15 +02:00
committed by GitHub
parent 3f39a57fe2
commit 86390f90fd

View File

@@ -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);