Core/Movement: Allow overriding speed for taxi movement generator

Port From (https://github.com/TrinityCore/TrinityCore/commit/038f995ad6ce6a26f71367cae3eb7ae107527a18)
This commit is contained in:
Hondacrx
2024-08-04 17:18:56 -04:00
parent 44f1a733e7
commit 22fbfd8360
4 changed files with 33 additions and 36 deletions
-12
View File
@@ -112,18 +112,6 @@ namespace Game
GetPlayer().SetTaxiCheater(lastTaxiCheaterState);
}
public void SendDoFlight(uint mountDisplayId, uint path, uint pathNode = 0)
{
// remove fake death
if (GetPlayer().HasUnitState(UnitState.Died))
GetPlayer().RemoveAurasByType(AuraType.FeignDeath);
if (mountDisplayId != 0)
GetPlayer().Mount(mountDisplayId);
GetPlayer().GetMotionMaster().MoveTaxiFlight(path, pathNode);
}
public bool SendLearnNewTaxiNode(Creature unit)
{
// find current node