Core/Spells: Fixed effects targeting the caster not hitting him immediately on spell launch if the spell targets a dest

Port From (https://github.com/TrinityCore/TrinityCore/commit/295c8f63269d966812f37a8bd8e988a9f2dc1235)
This commit is contained in:
hondacrx
2023-05-02 15:40:21 -04:00
parent 9decc17cd0
commit 5e5e17e23c
5 changed files with 78 additions and 36 deletions
+2
View File
@@ -702,6 +702,8 @@ namespace Game.Movement
MoveCharge(dest.X, dest.Y, dest.Z, SPEED_CHARGE, EventId.ChargePrepath);
// If this is ever changed to not happen immediately then all spell effect handlers that use this must be updated
// Charge movement is not started when using EVENT_CHARGE_PREPATH
MoveSplineInit init = new(_owner);
init.MovebyPath(path.GetPath());