From 1066bc76b17fe76b5cd7ab6321a3579834ee1072 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Tue, 19 Jul 2022 23:02:45 +0200 Subject: [PATCH] =?UTF-8?q?fix(Core/Spells):=20Upon=20using=20charge=20war?= =?UTF-8?q?rior=20should=20start=20auto=20attacki=E2=80=A6=20(#12408)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ...ng the targeted enemy once you reach them. --- .../Movement/MovementGenerators/PointMovementGenerator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/game/Movement/MovementGenerators/PointMovementGenerator.cpp b/src/server/game/Movement/MovementGenerators/PointMovementGenerator.cpp index 6e8f80065..5e06523fa 100644 --- a/src/server/game/Movement/MovementGenerators/PointMovementGenerator.cpp +++ b/src/server/game/Movement/MovementGenerators/PointMovementGenerator.cpp @@ -41,7 +41,7 @@ void PointMovementGenerator::DoInitialize(T* unit) unit->StopMoving(); unit->AddUnitState(UNIT_STATE_ROAMING | UNIT_STATE_ROAMING_MOVE); - if (id == EVENT_CHARGE) + if (id == EVENT_CHARGE || id == EVENT_CHARGE_PREPATH) { unit->AddUnitState(UNIT_STATE_CHARGING); } @@ -158,7 +158,7 @@ template void PointMovementGenerator::DoFinalize(T* unit) { unit->ClearUnitState(UNIT_STATE_ROAMING | UNIT_STATE_ROAMING_MOVE); - if (id == EVENT_CHARGE) + if (id == EVENT_CHARGE || id == EVENT_CHARGE_PREPATH) { unit->ClearUnitState(UNIT_STATE_CHARGING); @@ -182,7 +182,7 @@ void PointMovementGenerator::DoReset(T* unit) unit->StopMoving(); unit->AddUnitState(UNIT_STATE_ROAMING | UNIT_STATE_ROAMING_MOVE); - if (id == EVENT_CHARGE) + if (id == EVENT_CHARGE || id == EVENT_CHARGE_PREPATH) { unit->AddUnitState(UNIT_STATE_CHARGING); }