From 7b094faa85aa31b795f30969d9c3e75b9dc5cf76 Mon Sep 17 00:00:00 2001 From: Subv2112 Date: Tue, 3 Jan 2012 16:13:34 -0500 Subject: Core/SAI: SMART_ACTION_MOVE_TO_POS should not overwrite the effects of SMART_ACTION_SET_RUN Signed-off-by: Subv2112 --- src/server/game/AI/SmartScripts/SmartScript.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/server') diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 46a2994d653..a2e70e9cbf2 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -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 -- cgit v1.2.3