Fix some compile issues with Eluna based on upstream changes

This commit is contained in:
2026-01-10 17:15:39 +00:00
parent 3df5050bda
commit feffbcafec
2 changed files with 13 additions and 4 deletions

View File

@@ -3410,9 +3410,17 @@ namespace LuaGlobalFunctions
lua_setfield(L, -2, "delay");
}
// MoveType is WaypointMoveType enum
lua_pushinteger(L, static_cast<int>(node.MoveType));
lua_setfield(L, -2, "moveType");
// MoveType is Optional<WaypointMoveType>
if (node.MoveType)
{
lua_pushinteger(L, static_cast<int>(*node.MoveType));
lua_setfield(L, -2, "moveType");
}
else
{
lua_pushinteger(L, 0); // Default to WAYPOINT_MOVE_TYPE_WALK
lua_setfield(L, -2, "moveType");
}
lua_rawseti(L, -2, nodeIndex++);
}

View File

@@ -2076,7 +2076,8 @@ namespace LuaUnit
Position pos(x, y, z);
unit->GetMotionMaster()->MoveJump(pos, zSpeed, maxHeight, id);
// New signature: MoveJump(id, pos, speedOrTime, minHeight, maxHeight, ...)
unit->GetMotionMaster()->MoveJump(id, pos, zSpeed, {}, maxHeight);
return 0;
}