- 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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ bool TaxiAction::Execute(Event event)
{
if (Creature* npcPtr = ObjectAccessor::GetCreature(*bot, npcGuid))
if (!movement.taxiNodes.empty())
bot->ActivateTaxiPathTo(movement.taxiNodes, npcPtr);
bot->ActivateTaxiPathTo(movement.taxiNodes, npcPtr, 0);
},
delay);
botAI->SetNextCheckDelay(delay + 50);
@ -114,7 +114,7 @@ bool TaxiAction::Execute(Event event)
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.Set(nullptr);