mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
- Fixed bug with not respecting InstantFlightPaths config (#1410)
This commit is contained in:
parent
3f39a57fe2
commit
86390f90fd
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user