From 7a7c3a3a1f579f5b9e9407728b7ce46dd5b2d173 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 28 Apr 2022 10:37:51 -0400 Subject: [PATCH] Core/Scripts: Remove now-unused WaypointPathStarted hook. WaypointStarted does everything it used to do, anyway. Port From (https://github.com/TrinityCore/TrinityCore/commit/fc094509e9df59e055840936ba3389504fba87df) --- Source/Game/AI/CoreAI/CreatureAI.cs | 2 -- Source/Game/AI/SmartScripts/SmartAI.cs | 5 ----- Source/Game/Movement/Generators/WaypointMovement.cs | 5 ----- 3 files changed, 12 deletions(-) diff --git a/Source/Game/AI/CoreAI/CreatureAI.cs b/Source/Game/AI/CoreAI/CreatureAI.cs index 0016984a0..fc3fb8e49 100644 --- a/Source/Game/AI/CoreAI/CreatureAI.cs +++ b/Source/Game/AI/CoreAI/CreatureAI.cs @@ -546,8 +546,6 @@ namespace Game.AI /// == Waypoints system ============================= /// - public virtual void WaypointPathStarted(uint pathId) { } - public virtual void WaypointStarted(uint nodeId, uint pathId) { } public virtual void WaypointReached(uint nodeId, uint pathId) { } diff --git a/Source/Game/AI/SmartScripts/SmartAI.cs b/Source/Game/AI/SmartScripts/SmartAI.cs index e185e5dd7..005b0aca0 100644 --- a/Source/Game/AI/SmartScripts/SmartAI.cs +++ b/Source/Game/AI/SmartScripts/SmartAI.cs @@ -390,11 +390,6 @@ namespace Game.AI return true; } - public override void WaypointPathStarted(uint pathId) - { - // SmartAI::WaypointStarted() already handles the case of starting the 1st waypoint - } - public override void WaypointStarted(uint nodeId, uint pathId) { GetScript().ProcessEventsFor(SmartEvents.WaypointStart, null, nodeId, pathId); diff --git a/Source/Game/Movement/Generators/WaypointMovement.cs b/Source/Game/Movement/Generators/WaypointMovement.cs index e981fb6bc..ce84cb1d3 100644 --- a/Source/Game/Movement/Generators/WaypointMovement.cs +++ b/Source/Game/Movement/Generators/WaypointMovement.cs @@ -119,11 +119,6 @@ namespace Game.Movement owner.StopMoving(); _nextMoveTime.Reset(1000); - - // inform AI - CreatureAI ai = owner.GetAI(); - if (ai != null) - ai.WaypointPathStarted(_path.id); } public override void DoReset(Creature owner)