Core/SAI: Add action SMART_ACTION_JUMP_TO_POS.

This commit is contained in:
Jesper Meyer
2011-07-02 07:52:03 +02:00
parent b7ed8b7c66
commit b216522b3d
3 changed files with 15 additions and 1 deletions

View File

@@ -1776,6 +1776,11 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
delete targets;
break;
}
case SMART_ACTION_JUMP_TO_POS:
{
me->GetMotionMaster()->MoveJump(e.target.x, e.target.y , e.target.z, (float)e.action.jump.speedxy, (float)e.action.jump.speedz);
break;
}
default:
sLog->outErrorDb("SmartScript::ProcessAction: Unhandled Action type %u", e.GetActionType());
break;