From da1c3effb75113a1dbfbb1038b3d54fcf219f6e3 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Wed, 1 Jan 2025 20:41:08 +0800 Subject: [PATCH] Fix movement after spell cast --- src/strategy/actions/MovementActions.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/strategy/actions/MovementActions.cpp b/src/strategy/actions/MovementActions.cpp index 7931de2b..a637829c 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -236,11 +236,11 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle, if (bot->IsSitState()) bot->SetStandState(UNIT_STAND_STATE_STAND); - if (bot->IsNonMeleeSpellCast(true)) - { - bot->CastStop(); - botAI->InterruptSpell(); - } + // if (bot->IsNonMeleeSpellCast(true)) + // { + // bot->CastStop(); + // botAI->InterruptSpell(); + // } MotionMaster& mm = *bot->GetMotionMaster(); mm.Clear(); if (!backwards) @@ -277,11 +277,11 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle, if (bot->IsSitState()) bot->SetStandState(UNIT_STAND_STATE_STAND); - if (bot->IsNonMeleeSpellCast(true)) - { - bot->CastStop(); - botAI->InterruptSpell(); - } + // if (bot->IsNonMeleeSpellCast(true)) + // { + // bot->CastStop(); + // botAI->InterruptSpell(); + // } MotionMaster& mm = *bot->GetMotionMaster(); G3D::Vector3 endP = path.back(); mm.Clear();