mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/SAI: SMART_ACTION_MOVE_TO_POS should not overwrite the effects of SMART_ACTION_SET_RUN
Signed-off-by: Subv2112 <s.v.h21@hotmail.com>
This commit is contained in:
@@ -1336,8 +1336,6 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
target = targets->front();
|
||||
}
|
||||
|
||||
bool run = e.action.setRun.run ? true : false;
|
||||
CAST_AI(SmartAI, me->AI())->SetRun(run);
|
||||
if(!target)
|
||||
me->GetMotionMaster()->MovePoint(0, e.target.x, e.target.y, e.target.z);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user