Core/SAI: Add SMART_ACTION_RISE_UP for Z Axis

* closes #15188
This commit is contained in:
Rushor
2015-07-30 00:45:48 +02:00
parent 8092c68e88
commit 58da855925
3 changed files with 11 additions and 1 deletions

View File

@@ -1164,6 +1164,14 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
me->GetMotionMaster()->MovePoint(SMART_RANDOM_POINT, x, y, z);
break;
}
case SMART_ACTION_RISE_UP:
{
if (!me)
break;
me->GetMotionMaster()->MovePoint(SMART_RANDOM_POINT, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ() + (float)e.action.moveRandom.distance);
break;
}
case SMART_ACTION_SET_VISIBILITY:
{
if (me)