Merge pull request #4610 from Subv/fix005

Core/SmartAI: SMART_ACTION_MOVE_TO_POS should not overwrite the effects of SMART_ACTION_SET_RUN
This commit is contained in:
Shocker
2012-01-03 13:30:34 -08:00
@@ -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