Core/AreaTriggers: Replace fixed movement times in database for areatriggers with speed

Port From (https://github.com/TrinityCore/TrinityCore/commit/069771e22ef29e47298c62e6cb9d7dce72375348)
This commit is contained in:
Hondacrx
2025-06-04 09:04:50 -04:00
parent e68519679e
commit 433d1212df
5 changed files with 35 additions and 38 deletions
+1 -2
View File
@@ -418,8 +418,7 @@ namespace Scripts.World.Areatriggers
PathGenerator path = new(at);
path.CalculatePath(destPos.GetPositionX(), destPos.GetPositionY(), destPos.GetPositionZ(), false);
float timeToTarget = at.GetDistance(destPos.GetPositionX(), destPos.GetPositionY(), destPos.GetPositionZ()) * 144.5f;
at.InitSplines(path.GetPath(), (uint)timeToTarget);
at.InitSplines(path.GetPath());
}
}