Core/SAI: Added param PointId to SMART_ACTION_MOVE_OFFSET (#28555)

This commit is contained in:
Meji
2022-12-22 23:51:49 +01:00
committed by GitHub
parent 64a1c7735e
commit e218f27602
2 changed files with 7 additions and 2 deletions
@@ -1196,7 +1196,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
x = pos.GetPositionX() + (std::cos(o - (M_PI / 2))*e.target.x) + (std::cos(o)*e.target.y);
y = pos.GetPositionY() + (std::sin(o - (M_PI / 2))*e.target.x) + (std::sin(o)*e.target.y);
z = pos.GetPositionZ() + e.target.z;
target->ToCreature()->GetMotionMaster()->MovePoint(SMART_RANDOM_POINT, x, y, z);
target->ToCreature()->GetMotionMaster()->MovePoint(e.action.moveOffset.PointId, x, y, z);
}
break;
}